DarkPrince2005 Posted December 7, 2009 Share Posted December 7, 2009 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 More sharing options...
premiso Posted December 7, 2009 Share Posted December 7, 2009 It seems to easy to be true...but this: $newname="../../upload/".$image_name; Link to comment https://forums.phpfreaks.com/topic/184291-upload/#findComment-972933 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.