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 #173538 is a reply to message #173534] Mon, 18 April 2011 17:22 Go to previous messageGo to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On Mon, 18 Apr 2011 09:05:08 -0700, Peter Lauren wrote:

> Thank you very much for your replies. I read through your posts, and
> the ensuing posts, very carefully and my interpretation is as follows.
> The PHP code is running on a server. My PHP code is running on my
> server. The server is identified by an IP address which is
> "http:/localhost/" for the machine on which the call is made. Therefore
> if someone types "http:/localhost/" on some other machine, they will
> access the server on their machine if they have one running. To access
> the server on my machine, they would need to use my IP address instead.
> This is looked up through the Domain Name System ( DNS). If I was using
> a web host, like GoDaddy, would it assign a logical name name to the IP
> address like www.PetersWebSite.com instead of 123.456.7.8? Since html
> is client side, I guess if I had <a
> href="http://localhost/PHPTest.php">PHP Test</a> in my html code it
> would try to access PHPTest.php on the client's computer instead of
> mine. Does that seem right?

Yes. I think you now understand this part of it.

This is why you can not use 'localhost' as the host name inside your web
pages if you want other people to be able to access them, but you can use
'localhost' in the address bar of your browser to tell it to connect to
the server on your machine.

Rgds

Denis McMahon
[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: Tue Nov 26 11:48:08 GMT 2024

Total time taken to generate the page: 0.05093 seconds