Johnny Rocketfingers 2 (Polish)

Polish translation of Johnny Rocketfingers 2
3.89 / 5.00 2,785 ViewsHere is the error message I get while testing my PHP upload script: Warning: copy(/vcuploads/american nazi party.gif): failed to open stream: No such file or directory in /home/mustywin/public_html/subdomains/vietcong/downloads/upload.php on line 4
Could not copy file
Here is the code for the upload.php file which is the file that actually has all the coding to upload: <?php
if($file_name !="")
{
copy ("$file", "/vcuploads/$file_name")
or die("Could not copy file");
}
else {die("No file specified"); }
?>
What could be the problem? I didn't setup a database for the uploads but it didn't seem I needed to because it wasn't in the instructions. Do I have to? How would I specify the directories if I did have to?
Please help I need this script pretty quickly because visitors are getting annoyed with me haha. Test it yourself at http://vietcong.mustywindows.com/downloads/map_upload.php
Thanks.
Did you make the folder for the upload to got to and set all its attribute settings to 777?
There are a few things wrong with your code, I would suggest reading http://us4.php.net/manual/en/features.file-upload.php
:)
*bump* Does anyone know what's wrong? I've read the php tutorials but can't find it. :-(