[PHP] Functions in Safe Mode

2003-08-04 Thread Jay Fitzgerald
My code: echo number_format(filesize(news/final_1.txt)); The Warning: Warning: filesize() [ http://www.php.net/function.filesize function.filesize]: SAFE MODE Restriction in effect. The script whose uid is 17704 is not allowed to access news/final_1.txt owned by uid 65534 in

[PHP] Functions in Safe Mode?

2003-08-04 Thread Jay Fitzgerald
My code: echo number_format(filesize(news/final_1.txt)); The Warning: Warning: filesize() [ http://www.php.net/function.filesize function.filesize]: SAFE MODE Restriction in effect. The script whose uid is 17704 is not allowed to access news/final_1.txt owned by uid 65534 in

Re: [PHP] Functions in Safe Mode?

2003-08-04 Thread Jason Sheets
The problem is the owner of the script must be the owner of the file that you are accessing. If you fix your file ownership for your news directory or change your php script to be the same owner as the news directoryo you will be able to access the files. Look at the chown command,. you will