Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help with displaying images


m0rph

Recommended Posts

i have set everything up to work on xp and iis. i can see everything fine useing http://localhost .... but when someone views from through my ip address the images are not displaying, i have noticed the links for images are looking for the localhost still. how can i change this so the images can be viewed externally?

 

any help would be gratefully aprieciated.

Link to comment
Share on other sites

OK, can you issue a

 

grep -nR localhost /path/to/your/osc/catalog > find_localhost.txt

 

and look over the resulting 'find_localhost.txt' to see where the stray localhost is defined?

Or paste it into the forum and I'll have a look.

 

Regards,

Rob

Link to comment
Share on other sites

Sorry about that, I assumed a *NIX box.

 

The Windows translation of that command is roughly:

do a find on all files in your catalog directory containing the text localhost and save the result to a file.

 

Regards,

Rob

Link to comment
Share on other sites

this is my configure.php in catalogincludes not sure if there are other places which would have localhost as im not sure how to search every .php page to find it.

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://localhost'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

define('DIR_WS_IMAGES', 'images/');

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

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');

define('DIR_FS_DOCUMENT_ROOT', 'D:');

define('DIR_FS_CATALOG', 'D:/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', '');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'xgidgets');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

?>

Link to comment
Share on other sites

I think you misunderstood my earlier reply:

 

update

 define('HTTP_SERVER', 'http://localhost');

define('HTTPS_SERVER', 'https://localhost');

 

to

 define('HTTP_SERVER', 'http://your.ip.address.or.host');   

define('HTTPS_SERVER', 'https://your.ip.address.or.host');  

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...