RE: socket_read

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

 



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@xxxxxxxx] 
Sent: Thursday, February 09, 2006 7:05 PM
To: 'PHP General Users'
Subject:  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

 

 

 

-- 
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