problem with file copy after uploading

From: Date: Tue, 05 Sep 2000 08:10:40 +0000
Subject: problem with file copy after uploading
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-15249@lists.php.net to get a copy of this message
The server runs php 3.0.12 and linux. When a file is uploaded to the remote server, I got the the following error code: Warning: SAFE MODE Restriction in effect. The script whose uid is 12073 is not allowed to access /tmp/phpWjS20i owned by uid 0 in /free/home/greenfield/phtest/do_upload.php on line 6 Couldn't copy the file! Here's the do_upload.php file: <? if ($img1_name != "") { // copy("$img1", "/your/directory/path/$img1_name") // // the exat syntax of the above statement copy("$img1", "/free/home/greenfield/phtest/$img1_name") //line 6 or die("Couldn't copy the file!"); } else { die("No input file specified"); } ?>

« previous php.general (#15249) next »