note 32850 modified in function.fopen by felipe
| From: | felipe@php.net | Date: | Sun, 15 Jun 2008 12:10:01 +0000 |
| Subject: | note 32850 modified in function.fopen by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-140465@lists.php.net to get a copy of this message | ||
If you have problems with safe mode creating errors
"Warning: SAFE MODE Restriction in effect. The script whose uid is.."
because one of your PHP scripts created the PHP file you are now trying to run, then you can use
fopen() to create these files which will then be owned by you (not the server admin).
It must be done using the ftp method...
>> fopen('ftp://user:pass@domain.com',
>> 'w+b');
But please remember that this only creates files, I haven't found a way around setting the
correct UID on folders (yet)
Krang
- http://www.krang.org.uk
--was--
If you have problems with safe mode creating errors
"Warning: SAFE MODE Restriction in effect. The script whose uid is.."
because one of your PHP scripts created the PHP file you are now trying to run, then you can use
fopen() to create these files which will then be owned by you (not the server admin).
It must be done using the ftp method...
>> fopen('ftp://user:pass@domain.com',
>> 'w+b');
But please remember that this only creates files, I havent found a way around setting the correct
UID on folders (yet)
Krang
- http://www.krang.org.uk
http://php.net/manual/en/function.fopen.php