This post originated from an RSS feed registered with Python Buzz
by Phillip Pearson.
Original Post: php fsockopen woe
Feed Title: Second p0st
Feed URL: http://www.myelin.co.nz/post/rss.xml
Feed Description: Tech notes and web hackery from the guy that brought you bzero, Python Community Server, the Blogging Ecosystem and the Internet Topic Exchange
This code runs fine at the command line (/usr/bin/php fsocktest.php) but if I browse to it, I get these errors (repeated for sxore.com):
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/fsocktest.php on line 3
Warning: fsockopen(): unable to connect to www.myelin.co.nz:80 in /var/www/fsocktest.php on line 3
Update: Fixed this by installing PHP5 and Apache2 but not enabling either - huh? apt-get -t testing install libapache2-mod-php5 did the trick. Weird. Library mismatch?