ecstatica Posted August 15, 2008 Share Posted August 15, 2008 I don't think this is as complicated as I'm making it sound, but who knows? Here's the deal. Here's my site, and the path to save uploaded files: root/images/talent/ The URL is pointing at the root. I'm now moving this entire site to a subdirectory of this site, so a different URL will be pointed at: root/newsite/images/talent/ The line of contention is for a variable called media_path: $upload_dir = ""; $value = $id.".".$key.substr($value,strrpos($value,".")); $upload_file = $upload_dir.$value; $media_path = 'images/talent/'.$value; $original = $files['userfile']['tmp_name'][$key]; Just moving the script as is won't work, and either will changing the media path to: newsite/images/talent/ Any ideas? So very much appreciated! Link to comment https://forums.phpfreaks.com/topic/119843-solved-moving-a-script-having-a-path-problem/ Share on other sites More sharing options...
Maq Posted August 15, 2008 Share Posted August 15, 2008 If I'm understanding the problem correctly you should change $media_path to: $media_path = './newsite/images/talent/' . $value; Link to comment https://forums.phpfreaks.com/topic/119843-solved-moving-a-script-having-a-path-problem/#findComment-617434 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.