note 32850 added to function.fopen

From: Date: Mon, 09 Jun 2003 08:50:05 +0000
Subject: note 32850 added to function.fopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-50011@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 ---- Manual Page -- http://www.php.net/manual/en/function.fopen.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32850 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32850&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32850&report=yes

« previous php.notes (#50011) next »