Re: Help with file upload

From: Date: Thu, 16 Oct 2003 13:12:38 +0000
Subject: Re: Help with file upload
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-31075@lists.php.net to get a copy of this message
On Thu, 2003-10-16 at 09:58, Bunmi Akinmboni wrote: > Thanks Neil. My ultimate aim to update my database with the details of > the upload after it uploads successfully, but I need to solve this > problem first. > > The folder already has permission 777. Dateiname: /home/www/web172/phptmp/phppYlgrZDatei wurde hochgeladen Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 897 is not allowed to access /home/www/web172/html/html owned by uid 30 in /home/www/web172/html/upload_http.php on line 9 This is my actual Warning after running this script files should moved from ../web172/phptmp/ into ../web172/html/ both directories are on the same 'floor'. <? echo 'Dateiname: '; echo $userfile; //chdir('html'); if(is_uploaded_file($userfile)); { echo "Datei wurde hochgeladen"; chmod("html",100755); move_uploaded_file($userfile,'html/'.$userfile); } //move_uploaded_file($userfile,$userfile); ?>

« previous php.db (#31075) next »