Jump to content

Upload


DarkPrince2005

Recommended Posts

Hey people... Below is an extract from a piece of code I'm using to upload a file, but how can I modify the script to upload to a '../../upload' folder?

 

$image_name=time().'.'.$extension;
   $newname="upload/".$image_name;
   $copied=copy($_FILES['file']['tmp_name'], $newname);
   }if (!$copied)
   {

Link to comment
https://forums.phpfreaks.com/topic/184291-upload/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.