我正在尝试在php中创建一个公共_html之外的文件:
[Wed Aug 01 14:33:54 2012] [error] [client 84.3.2.16] PHP警告:fopen(/home/sites/foo.org/backup-ticketing/asu.sql) [function.fopen]:无法打开流:操作不允许 in /home/sites/foo.org/public_html/back/asu.php on line 4
请告诉我正确的方法,谢谢你的帮助。另外我有额外的信息:php.ini是公共_html的问题,但我想保持原样,/back/文件夹应该能够这样做。以下是我的设置:
fopen("/home/sites/foo.org/backup-ticketing/asu.sql";w)
。但是我收到了这个错误消息。我确信我应该可以通过某种方式做到这一点,只是我无法弄清楚。文件夹的权限为711
。[Wed Aug 01 14:33:54 2012] [error] [client 84.3.2.16] PHP警告:fopen(/home/sites/foo.org/backup-ticketing/asu.sql) [function.fopen]:无法打开流:操作不允许 in /home/sites/foo.org/public_html/back/asu.php on line 4
请告诉我正确的方法,谢谢你的帮助。另外我有额外的信息:php.ini是公共_html的问题,但我想保持原样,/back/文件夹应该能够这样做。以下是我的设置:
file_uploads = Off
upload_tmp_dir = /var/php_tmp
upload_max_filesize = 0M
allow_url_fopen = Off
allow_url_include = Off
safe_mode = Off
display_errors = off
magic_quotes_gpc = off
magic_quotes_runtime = off
max_file_uploads=0
disable_functions=passthru,exec,phpinfo
open_basedir = /home/sites/foo.org/public_html/