PDA

View Full Version : Path Problem


rose
06-25-2005, 09:04 AM
Hi!

I installed PHP Link Directory in mysite.com/links/
After I changed in 'ini.php':

define('DOC_ROOT', substr($_SERVER["SCRIPT_NAME"], 0, strrpos($_SERVER["SCRIPT_NAME"], '/links/')));
if(!defined('DB_DRIVER')){
header('Location: '.DOC_ROOT.'/links/install/index.php');
exit;

Here are my problems:

(1) When I make new categories (i.e. Computer), the URL is mysite.com/computer/ and NOT mysite.com/links/computer/

(2) I read that you will give out a install help for oscommerce. Is it ready yet?

Thanks in advance.

Rose

dcb
06-25-2005, 01:47 PM
You don't have to change anything in init.php. The line that you changed is used to determine automatically what is the URL of the directory. The changes you made make the script believe it's installed in the root of the website.