The Artima Developer Community
Sponsored Link

Python Buzz Forum
php fsockopen woe

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Phillip Pearson

Posts: 1083
Nickname: myelin
Registered: Aug, 2003

Phillip Pearson is a Python hacker from New Zealand
php fsockopen woe Posted: Apr 19, 2006 7:36 PM
Reply to this message Reply

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
Latest Python Buzz Posts
Latest Python Buzz Posts by Phillip Pearson
Latest Posts From Second p0st

Advertisement

On my server, PHP's fsockopen function doesn't seem to work.

<?

echo fsockopen("www.myelin.co.nz", 80);
echo fsockopen("sxore.com", 80);

?>

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?

Comment

Read: php fsockopen woe

Topic: TurboGears Documentation Sprint! Previous Topic   Next Topic Topic: Getting Started with Common Lisp, part 2

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use