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 #173560 is a reply to message #173538] Mon, 18 April 2011 21:35 Go to previous messageGo to previous message
Peter Lauren is currently offline  Peter Lauren
Messages: 48
Registered: April 2011
Karma:
Member
On Apr 18, 1:22 pm, Denis McMahon <denis.m.f.mcma...@gmail.com> wrote:
> 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 likewww.PetersWebSite.cominstead 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

Hi Denis,

Thanks for confirming that. From what Michael said, I may just use
wampserver on my PC to test my applications before deploying them and
get a hosting package for deployment.

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 22 16:33:28 GMT 2024

Total time taken to generate the page: 0.04812 seconds