Re: connectivity weirdness

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, October 20, 2006 11:40 am, Richard Lynch wrote:
> The canonical PHP example of web-scraping:
> <?php echo file_get_contents('http://php.net/');?>
> fails on a machine I'm using.
>
> I'm laying out here all the things I've done and eliminated, and it
> got awfully long...
>
> Short Version:
>
> FC4 + LAMPP on 2 different private IP boxes at day job
>
> file_get_contents('http://php.net') hangs and times out after 2
> minutes.
> telnet php.net 80 | GET / HTTP/1.0 hangs and times out after 2
> minutes.
> wget php.net WORKS
> links php.net WORKS

It turns out that there are two gateways here on the Intranet, and one
of them does NAT and one doesn't.

Changing the gateway to the one that NATs fixed things.

Don't ask me how wget and links made the allegedly non-NAT-ing gateway
"work" as I don't know and probably wouldn't understand the
explanation if somebody told me anyway :-)

It's probably some weird Windows thing anyway :-)

The NAT-ing boxen are most likely Windows, as the IT guy didn't even
know how to change the gateway on Un*x...

It only took me 5 tries and 10 re-reads of the man pages to get the
command right :-)

But I done fixed it, yup.

There's a reason I'm not a sysadmin... :-) :-) :-)

PS
On another fun job this weekend...
NOTE TO SELF:  Always check to make sure nobody kicked the wall wart
loose from the power strip before you waste an hour trying to fix your
boss' Win98 2Ed. computer after he claims that the whole Internet is
"down"
Every damn change to the IP/netconfig required re-inserting the damn
OS CD and re-booting!  What the hell is up with that?
No wonder I told him I was no longer supporting that box five years
ago...

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux