Code: Select all
$target = $_SERVER['DOCUMENT_ROOT']."/images/uploads/";Under "httpdocs" this works. But under "demosite.site.com" it doesn't... becuase I want it to upload it to the main httpdocs folder, where I will reference to it from the main site too.
I thought I could do it like this:
Code: Select all
$target ="http://www.site.com/images/uploads/";