Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

$DOCUMENT_ROOT


Salvo

Recommended Posts

HI all

 

I am going mad here..

I have a site working ok offline, I put it online and when I upload images that show offline, they don't online..

 

http://www.mysite.com/home/salvo/public_ht..._miserables.gif

 

I don't need this part: home/salvo/public_html

 

this is what I have.. but it works offline.

 

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT);

 

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

 

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

 

Thanks

 

Salvo

Link to comment
Share on other sites

I couldn't get $DOCUMENT_ROOT to work on my site so I just filled in the server-relative path to my site. You'll have to find out from your hosting service what that is.

Link to comment
Share on other sites

well, what is funny is that I have other sites osc on the same server and they all work...

 

I do the same on this one and dont work..

 

I have an extra bit: home/salvo/public_html NOT needed...

 

I just want to get read of it.. it must be so simple..

 

LOST 2 HOURS SO FAR.. :-(

Link to comment
Share on other sites

$DOCUMENT_ROOT is a query to the machine as to where the current "root" directory actually is relative to the real root directory of the machine. Kind of a "where am I?"

 

If you set the path explicitly for the s/w it simplifies locating directories and should cut down the overhead a little.

 

For example: /usr/local/xyz/home/vhosts/httpdocs is telling the s/w that the world thinks your site resides at httpdocs.

 

Just set it explicitly and work on other things.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...