You are here: Help with sockets needed « PHP Programming Language « IT news, forums, messages
Help with sockets needed

Posted by artemio on 09/15/06 16:25

Hello all!

I need some help with sockets. I have this code:

$Connection = fsockopen( "google.com", 80, $ErrNo, $ErrStr, 30 );

if($Connection){

echo "Connection established\n";

while(!feof($Connection)){

echo fgets($Connection, 128);

}

echo "Got some data\n";

} else {

echo "Error $ErrNo: $ErrStr\n";

}

But it never gets to output anything, it only prints "Connection
established" and then the script simply gets stuck, it never gets to
say "Got some data"...

Any help will be very appreciated.


Thanks,

Artemiy.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация