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 #173410 is a reply to message #173405] Fri, 08 April 2011 18:00 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 4/8/2011 1:33 PM, Peter Lauren wrote:
> 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.

Which is where it's supposed to look (relative to the script being
executed). If you want it from the document root, you need to specify
to use the document root, i.e. <a href="http::/index.php">

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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 22 17:24:13 GMT 2024

Total time taken to generate the page: 0.04519 seconds