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) { Quote 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; Quote Link to comment https://forums.phpfreaks.com/topic/184291-upload/#findComment-972933 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.