At 11:39 3-2-03, you wrote:
what you did should work (you must be root to change owner). You can use -R switch to change owner recursivelyI think you did it just the wrong way round, the way i read it the owner of the file you wanted to read already was 831, so try to chown it to 48.
Gurvinder Singh wrote:
hi i create a php page dynamically in my php script. this page include one of my other php file. when i run the newly created script i get this errorWarning: SAFE MODE Restriction in effect. The script whose uid is 48 is not allowed to access file.php owned by uid 831 Is there a way to handle this. i even tried chown to change the newly created file's owner to be 831 but it doesnt seem to work
Safe mode writes files with chmod 750, so now effectively 0 for the php script that tries to reach it. In stead of chowning, you can also chmod the file to read (file.php) to 777, if you do not mind the security too much, if possible take the file out of the www directory.
I have a big problem with safe mode now with a script that needs to create subdirectories itself, so with every new added course i would need to go and change the chmod by FTP.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php