graham23s Posted September 13, 2010 Share Posted September 13, 2010 Hi Guys, Before i re-jig code i was wondering if this is possible, i have 2 ecommerce sites located on my server like: /www/site1.com /www/site2.com Instead of going into the admin panel of each site and uploading products individually i was going to re-jig the admin code in site1.com to upload products to both site1 and site2. i know "../" goes up 1 directory but is it possible to not only go up a directory but move them into another sites folders altogether? kind of like: site1.com/admin/upload.php can move files into: site2.com/images/uploads/ thanks guys Graham hop that makes sense! cheers guys Graham Link to comment https://forums.phpfreaks.com/topic/213313-uploading-into-different-site-directory/ Share on other sites More sharing options...
Psycho Posted September 13, 2010 Share Posted September 13, 2010 Just create the products folder in a folder that is accessible to both sites: /products/ /www/site1.com /www/site2.com But, yes, you can have the upload copy the content to folders for both sites. Link to comment https://forums.phpfreaks.com/topic/213313-uploading-into-different-site-directory/#findComment-1110678 Share on other sites More sharing options...
graham23s Posted September 13, 2010 Author Share Posted September 13, 2010 nice one, thanks mate Graham Link to comment https://forums.phpfreaks.com/topic/213313-uploading-into-different-site-directory/#findComment-1110690 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.