Jump to content

[SOLVED] Moving a Script - Having a Path Problem


ecstatica

Recommended Posts

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!

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.