You might want to check what the value of APPLICATION_ROOT is being set to by
freetrade. I had had some problems on my system because like you, my index.phtml
file was not in the httpd/ directory. I had to modify the code which sets
APPLICATION_ROOT as follows to get things to work:
//This code returns "index.phtml" even when index.phtml is not located at the
document root
//$PATH_INFO seems to always have what we want initially
//On my machine, $SCRIPT_NAME = "/php3/php.exe"
eregi("([^/\\]*)$", $PATH_INFO, $match);
define("SCRIPT_NAME", $match[0]);
define("SCRIPT_FILENAME", $DOCUMENT_ROOT . $PATH_INFO);
// Path translated contains back slashes and is dropped to lower case.
//define("APPLICATION_ROOT", eregi_replace("[/\\]htdocs[/\\]".SCRIPT_NAME, "",
$PATH_TRANSLATED));
define("APPLICATION_ROOT", eregi_replace("[/\\]htdocs".$PATH_INFO, "",
SCRIPT_FILENAME));
define("EXTERNAL_PATH", eregi_replace(SCRIPT_NAME, "", $PATH_INFO));
Leif
Shannon -jj Behrens wrote:
> > > This is really stupid but I can't get index.php3 to recognize anything I
> > > use for APPLICATION_ROOT.
> > >
> > > My true path to the modules directory is:
> > > /home/httpd/html/freetrade/
> > >
> > > Not sure what the external apth should look like either.
> > >
> > > Can some one send me a sample of their true paths and the defines
> > > they use
> > > in index.php3?
> >
> > You should be able to do:
> >
> > define("APPLICATION_ROOT", "/home/httpd/html/freetrade/");
> >
> > but you shouldn't need to change it from the defaults. Are the include()'s
> > failing for you?
> You are using Apache, right?
>
> --
> Shannon -jj Behrens * Web Engineer * CLEAR INKョ
> Imagination is the only real medium(sm)
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Site: http://www.working-dogs.com/freetrade/
> Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]