m*****x 发帖数: 114 | 1 还有最后一个问题,
在读写文件时,出现问题:
Writing to test2.txt ...
Warning: file_put_contents(test2.txt) [function.file-put-contents]: failed
to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/
putcontents.php on line 4
Appending to test2.txt ...
Warning: file_put_contents(test2.txt) [function.file-put-contents]: failed
to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/
putcontents.php on line 6
也是permission的问题,我所有的.php和相关的东西都在/Applications/XAMPP/
xamppfiles/htdocs下... 阅读全帖 |
|
m*****x 发帖数: 114 | 2 还有最后一个问题,
在读写文件时,出现问题:
Writing to test2.txt ...
Warning: file_put_contents(test2.txt) [function.file-put-contents]: failed
to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/
putcontents.php on line 4
Appending to test2.txt ...
Warning: file_put_contents(test2.txt) [function.file-put-contents]: failed
to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/
putcontents.php on line 6
也是permission的问题,我所有的.php和相关的东西都在/Applications/XAMPP/
xamppfiles/htdocs下... 阅读全帖 |
|
m*****x 发帖数: 114 | 3 用书上的例子upload file 总出错误(如下)
path: /Applications/XAMPP/xamppfiles/temp/phpc4Tkr0
name: CIMG0122.JPG
type: image/jpeg
size: 919798
Warning: move_uploaded_file(/uploads/CIMG0122.JPG) [function.move-uploaded-
file]: failed to open stream: No such file or directory in /Applications/
XAMPP/xamppfiles/htdocs/do_upload.php on line 11
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move
'/Applications/XAMPP/xamppfiles/temp/phpc4Tkr0' to '/uploads/CIMG0122.JPG'
in /Applications/XAMPP... 阅读全帖 |
|
m*****x 发帖数: 114 | 4 用书上的例子upload file 总出错误(如下)
path: /Applications/XAMPP/xamppfiles/temp/phpc4Tkr0
name: CIMG0122.JPG
type: image/jpeg
size: 919798
Warning: move_uploaded_file(/uploads/CIMG0122.JPG) [function.move-uploaded-
file]: failed to open stream: No such file or directory in /Applications/
XAMPP/xamppfiles/htdocs/do_upload.php on line 11
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move
'/Applications/XAMPP/xamppfiles/temp/phpc4Tkr0' to '/uploads/CIMG0122.JPG'
in /Applications/XAMPP... 阅读全帖 |
|