This brings up a question that I have always had about Freetrade. Is there
any reason why Freetrade includes the host name in the urls that it encodes
in the pages it generates? If you serve a page which just includes a path
to the page, then the browser will automatically prepend the host of the
page.
It seems like letting the browser handle this would solve some setup
problems. When we have done some testing with Freetrade, it has sometimes
been desirable to run with the IP address and no host name
(http://192.168.0.2/Index.php3) Or even on a different port.
(http;//localhost:9000/Index.php3) Both of these cause problems if the host
name in Apache's config file does not match. It Freetrade simply served the
url minus the host (/Index.php3) Then these should all work.
It looks like there has been a lot of work done to resolve and encode the
host name in the URLs so I am sure that there is a reason why it is
sometimes required, I was just wondering what it is.
Thanks,
Leif
Bjarne Hansen wrote:
> Hi Shawn!
>
> Using Windows is not all so cool... I use WIN 98 and Apache. It running
> ok, for test, but I have a smular problem. So what I do is edit the path
> in the index.php, like this:
>
> #define("SERVER_NAME", $SERVER_NAME);
> #define("SCRIPT_NAME", basename(__FILE__));
> #define("APPLICATION_ROOT", dirname(dirname(__FILE__)));
> #define("EXTERNAL_PATH", dirname($SCRIPT_NAME) . "/");
>
> define("SERVER_NAME", "localhost");
> define("SCRIPT_NAME", basename(__FILE__));
> define("APPLICATION_ROOT", "C:/Apache/htdocs/master/");
> define("EXTERNAL_PATH", "/master/htdocs/");
>
> The hashed out ones is of cause the way it is by default. When I upload
> to Unix I just reverse the hashes.
>
> Hope this can help you
>
> Bjarne
>
> > Shawn Honeychurch wrote:
> >
> > Hello;
> >
> > I think I am going crazey. I had a complete system crash from Win NT4
> > and decided to go to Win 2000pro. The OS is great, but i cannot get
> > freetrade to run now. I have tried both the Xitami webserver and IIS5
> > with no luck. I installed the latest version of php4 and i can get
> > the index.php3 page to load fine and connect to mysql without
> > problem. But all my other links show up as http:///index.php3?etc, I
> > cannot figure out how to get the full path info to show up. Any ideas
> > folks?
> >
> > Shawn
>
> ------------------------------------------------------------
> 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]
- [FreeTrade] Path problems Shawn Honeychurch
- [FreeTrade] Path problems Bjarne Hansen
- Re: [FreeTrade] Path problems Shawn Honeychurch
- Re: [FreeTrade] Path problems Leon and Vicky Atkinson
- Re: [FreeTrade] Path problems Shawn Honeychurch
- RE: [FreeTrade] Path problems Leif Mortenson
- RE: [FreeTrade] Path problems Chuck Gartland
- RE: [FreeTrade] Path problems Leon Atkinson
- RE: [FreeTrade] Path problem... Chuck Gartland
- RE: [FreeTrade] Path pro... Leon Atkinson
- RE: [FreeTrade] Path pro... Chuck Gartland

