Re: php scripts only work when connected to the internet.
| From: | Hugh Bothwell | Date: | Sat, 30 Jun 2001 02:27:03 +0000 |
| Subject: | Re: php scripts only work when connected to the internet. | ||
| References: | 1 2 3 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-8113@lists.php.net to get a copy of this message | ||
""Bryan"" <Bryan.W@bigpond.com> wrote in message
news:9h94q7$jg2$1@w153.z064000151.sjc-ca.dsl.cnc.net...
> Thanks Hugh,
> I have been trying http://mylaptop/whatever.php where mylaptop
> is the
> localhost but it won't process when the laptop is standalone and not
> connected to the network or dialled in to the web. When I am connected,
all
> php scripts work fine.
I have experienced something similar running PHP with Apache on WinME; if I
dial up then disconnect, then request a page on localhost, it tries to
connect. Because I have the dialler set to prompt every time, it brings up
the dialler, I click 'cancel'... and it gets me the page.
I'm really not sure what I need to change; somehow I need to tell it that
localhost doesn't require a connection. For now, it's a minor nuisance, so
I just ignore it. But if anyone has a more permanent solution, I'd be glad
to hear it.
As one other person has noted, calling the page as http://127.0.0.1/page.php
works without doing this; I have localhost set in my Apache config, but it
seems to want to ask the DNS anyway??