RE: [PHP] socket_read
| From: | Weber Sites LTD | Date: | Thu, 09 Feb 2006 17:49:33 +0000 |
| Subject: | RE: [PHP] socket_read | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-230172@lists.php.net to get a copy of this message | ||
Check out some XML examples, maybe you can find more there :
http://www.weberdev.com/AdvancedSearch.php?example=&searchtype=category&sort
=title&search=&category=XML&date=&secondary=&SearchIn=All+Categories&IsSub=&
PHPFunctions=&Articles=on
Sincerely
berber
Visit the Weber Sites Today,
To see where PHP might take you tomorrow.
SEO Data Monitor : http://seo.weberdev.com
PHP & MySQL Forums : http://www.weberforums.com
-----Original Message-----
From: Peter Lauri [mailto:peter@lauri.se]
Sent: Thursday, February 09, 2006 7:05 PM
To: 'PHP General Users'
Subject: [PHP] socket_read
Best group member,
I want to read the content from a socket that is sending XML.
The socket_read(socket, length) takes the two parameters. But what I am
concerned about it, I do not actually know the 'length' of what is being
sent. How do I protect myself from that?
Right now I just use a value of 'length' that with margin is larger then the
size I will receive. Is it possible to get the size of what is ready to be
read from the socket?
Best regards,
Peter Lauri