FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP Runs In WinXP Command Window But Not In Browser
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173406 is a reply to message #173395] Fri, 08 April 2011 17:34 Go to previous messageGo to previous message
Peter Lauren is currently offline  Peter Lauren
Messages: 48
Registered: April 2011
Karma:
Member
On Apr 7, 10:09 am, Denis McMahon <denis.m.f.mcma...@gmail.com> wrote:
> Note, however, that you REALLY REALLY SHOULD NOT use "localhost" or
> "127.0.0.1" in any url inside a file in the "DocumentRoot" directory or
> it's sub directories, as the special dns entry and special ip address
> will ONLY WORK if you are using a browser on the SAME MACHINE as the
> webserver.
>
> So, for example if you want to include a link to the file at "c:\wamp\www
> \index.php" inside the file "c:\wamp\www\index.htm" so that you link from
> the htm file to the php file when DocumentRoot is "c:\wamp\www", your
> link inside the htm file would look something like:
>
> <a href="index.php">link text</a>
>

That's where I have a problem. If I use <a href="index.php">link
text</a> instead of <a href="http://localhost/Examples.php">link
text</a>, it looks for the file in the directory where the html file
is located instead of in the "DocumentRoot" directory.

Thanks,
Peter.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: neither var_dump() nor die() displays anything
Next Topic: Spaces in filenames
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 29 23:59:42 GMT 2024

Total time taken to generate the page: 0.05151 seconds