A. ứng dụng AddType/x-httpd-php. php
B. ứng dụng AddType/x-httpd-php. asp
C. ứng dụng AddType/x-httpd-asp. php
D. ứng dụng AddType/x-httpd-asp. asp
Câu trả lời. Lựa chọn A
Giải pháp [By Examveda Team]
Chỉ cần thay đổi. php to. html và phần mở rộng của bạn sẽ thay đổi. Điều này được sử dụng cho mục đích bảo mậtFrom the Changelog notes:
"Warnings may be generated if the destination filesystem doesn't permit chown[] or chmod[] system calls to be made on files — for example, if the destination filesystem is a FAT filesystem."
More explicitly, rename[] may still return [bool] true, despite the warnings that result from the underlying calls to chown[] or chmod[]. This behavior can be misleading absent a deeper understanding of the underlying mechanics. To rename across filesystems, PHP "fakes it" by calling copy[], unlink[], chown[], and chmod[] [not necessarily in that order]. See PHP bug #50676 for more information.
On UNIX-like operating systems, filesystems may be mounted with an explicit uid and/or gid [for example, with mount options "uid=someuser,gid=somegroup"]. Attempting to call rename[] with such a destination filesystem will cause an "Operation not permitted" warning, even though the file is indeed renamed and rename[] returns [bool] true.
This is not a bug. Either handle the warning as is appropriate to your use-case, or call copy[] and then unlink[], which will avoid the doomed calls to chown[] and chmod[], thereby eliminating the warning.
Xin chào
Tôi là một lập trình viên mới vào nghề. Vấn đề là tôi đã tạo toàn bộ trang web có phần mở rộng php, vì tôi đã đọc một vài nguồn rằng nếu bạn muốn tạo một trang web bằng php, bạn cần tất cả các trang của mình phải làm với phần mở rộng php, nhưng tôi có một trang như . Đăng ký, nhập Nội các cá nhân - tiện ích mở rộng phải có cho html. Ngay cả khi tôi hiểu đúng, sau đó thay đổi phần mở rộng tệp, ví dụ: php thành html trong Notepad Windows7 bình thường, như mọi người nói, một tệp có phần mở rộng tệp đã thay đổi có thể không hoạt động. điều gì sẽ bật hệ thống cho dù DOS hay một số khác [không nhớ] sẽ gây ra lỗi. Nhưng đại loại là nếu bạn thay đổi phần mở rộng của tệp trong Notepad ++, thì mọi thứ sẽ ổn thôi. Tôi nghĩ trong Notepad++, có một tính năng cho phép bạn thay đổi phần mở rộng tệp [mà không gây hại cho tệp có phần mở rộng tệp đã thay đổi]. Tôi vẫn tạo tất cả các trang của bạn bằng Notepad windows 7 tiêu chuẩn
Tôi có cần thay đổi phần mở rộng của các trang của trang Đăng ký, nhập Nội các cá nhân, Giỏ của người mua trên html không? . tôi chỉ đang học
Vui lòng cho tôi biết bạn có muốn chuyển sang Notepad ++ không?
Cảm ơn trước
Tôi cần điều này để thay đổi tất cả tiện ích mở rộng hình ảnh trong thư viện thành chữ thường. Tôi đã kết thúc làm như sau
// Converts image file extensions to all lowercase
$currentdir = opendir[$gallerydir];
while[false !== [$file = readdir[$currentdir]]] {
if[strpos[$file,'.JPG',1] || strpos[$file,'.GIF',1] || strpos[$file,'.PNG',1]] {
$srcfile = "$gallerydir/$file";
$filearray = explode[".",$file];
$count = count[$filearray];
$pos = $count - 1;
$filearray[$pos] = strtolower[$filearray[$pos]];
$file = implode[".",$filearray];
$dstfile = "$gallerydir/$file";
rename[$srcfile,$dstfile];
}
}
Điều này làm việc cho mục đích của tôi