Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Using images from another site


steve***

Recommended Posts

I run 2 seperate sites.

 

I have one with a 10gb transfer limit per month, and another (with my osc store on it) with a 1gb limit.

 

I want to be able to store my images on the bigger server, but be able to access them from my store.

 

Is there any mod or code I should be using so I don;t have to upload the images to the smaller server?

Link to comment
Share on other sites

not sure if this will work but can you not put the url in the image fields??

 

like this www.yourstoredomain.co.uk/images/yourimagename.jpg??

 

Regards

 

Mark

I would have to agree with this you had part of it right.

 

Try using http://www.bigserver.com/images/horse.jpg

 

you have to create a link to the big server folder where you have stored the image.

 

It should not be looking for it on your hard-drive

 

 

what ever the direct path is to the folder you have the images in on the big server, you must use that path.

Link to comment
Share on other sites

If i click the browse button (o'm setting up an individual product here) it always looks at my hard drive and refuses to look @ the internet for products

 

if I ignore this and type the URL directly into the box without clicking browse I get this error

 

Warning: move_uploaded_file(/home/steve/public_html/store/images/http://www.bigserver.co.uk/product_images/large/1010-1010.jpg): failed to open stream: No such file or directory in /home/steve/public_html/store/admin/includes/classes/upload.php on line 94

 

Warning: move_uploaded_file(): Unable to move '/tmp/phpVbqxKW' to '/home/steve/public_html/store/images/http://www.bigserver.co.uk/product_images/large/1010-1010.jpg' in /home/steve/public_html/store/admin/includes/classes/upload.php on line 94

Link to comment
Share on other sites

Try change your CONFIGURE.PHP file - remove or change the following:

 

  define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

To something like:

  define('DIR_WS_IMAGES', 'http://your_big_server/catalog/images/');
 define('DIR_WS_ICONS', 'images/icons/');

 

Then when you add items - Pics can be done as normal.

 

 

Note: this type of setup MAY cause problems in a secure server setup.

 

Good luck

Link to comment
Share on other sites

How would these changes effect theimages already uploaded to my site?

 

I mean, i use three main suppliers for my products, one particular supplier has given me lots of images that I have put ion the bigger server, but the other 2 suppliers images are n the same server as OSC.

Link to comment
Share on other sites

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...