Re: safe mode problem
| From: | Marek Kilimajer | Date: | Tue, 04 Feb 2003 09:19:41 +0000 |
| Subject: | Re: safe mode problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134229@lists.php.net to get a copy of this message | ||
I recomend you use ftp functions to upload the script to your site (from the generating file). If you only use normal filesystem function, the newly created file will get the owner of the http server.
gurvinder singh wrote:
and how can i be root from a php script? i want chown from the script itself which created the page. -----Original Message----- From: Marek Kilimajer [mailto:kilimajer@webglobe.sk] Sent: Monday, February 03, 2003 12:39 PM To: Gurvinder Singh Cc: php-general@lists.php.net Subject: Re: [PHP] safe mode problem what you did should work (you must be root to change owner). You can use -R switch to change owner recursively 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 error Warning: 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 butitdoesnt seem to work Thanks & Regards Gurvinder