RE: [PHP] socket_read can not read the whole HTTP page?

2007-12-30 Thread Richard Lynch
; > > 1.must be "HTTP/1.0" : why? IE post "HTTP/1.1" . > 2. must be "closed" : so that should be close not closed; > > Both modification are required. > > Shall anyone tell me sth. about "HTTP/1.0" and "HTTP/1.1" ? > &g

RE: [PHP] socket_read can not read the whole HTTP page?

2007-12-28 Thread ked
sed" : so that should be close not closed; Both modification are required. Shall anyone tell me sth. about "HTTP/1.0" and "HTTP/1.1" ? best regards! ked > -Original Message----- > From: Eddie Dunckley [mailto:[EMAIL PROTECTED] > Sent: Friday, December 28,

Re: [PHP] socket_read can not read the whole HTTP page?

2007-12-27 Thread Eddie Dunckley
On Fri 28 Dec 07, Eddie Dunckley wrote: > On Fri 28 Dec 07, ked wrote: > > I wrote those script to get HTTP url content, and it works , but > and change this to > $in .= "Connection: closed\r\n\r\n"; soz that should be close not closed; -- Eddie - Chaos, panic, and disorder - my work here is do

Re: [PHP] socket_read can not read the whole HTTP page?

2007-12-27 Thread Eddie Dunckley
On Fri 28 Dec 07, ked wrote: > I wrote those script to get HTTP url content, and it works , but it > can't read the whole content of the page. > Blocked on "while ($out = socket_read($socket, 1024)) ". > $in .= "GET {$file} HTTP/1.1\r\n"; try to change this to $in .= "GET {$file} HTTP/1.0\r\n";

RE: [PHP] socket_read

2006-02-09 Thread Weber Sites LTD
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

Re: [PHP] socket_read

2006-02-09 Thread Oli Howson
I want to read the content from a socket that is sending XML. IIRC, you just read in a loop while there's still stuff to read. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] socket_read() trouble with PHP_BINARY_READ

2005-09-03 Thread M. Sokolewicz
Original Message - From: "M. Sokolewicz" <[EMAIL PROTECTED]> To: ; "Tom Rogers" <[EMAIL PROTECTED]> Sent: Saturday, September 03, 2005 10:49 AM Subject: Re: [PHP] socket_read() trouble with PHP_BINARY_READ hello, thank you for the help, but I've tried your cod

Re: [PHP] socket_read() trouble with PHP_BINARY_READ

2005-09-03 Thread M. Sokolewicz
To: ; "Tom Rogers" <[EMAIL PROTECTED]> Sent: Saturday, September 03, 2005 10:49 AM Subject: Re: [PHP] socket_read() trouble with PHP_BINARY_READ hello, thank you for the help, but I've tried your code, and it returns the exact same thing :( the error #11 temporarily unava

Re: [PHP] socket_read() trouble with PHP_BINARY_READ

2005-09-03 Thread Gustav Wiberg
Hi there! Can't it be anything with filepermissions? Just a clue... /G @varupiraten.se - Original Message - From: "M. Sokolewicz" <[EMAIL PROTECTED]> To: ; "Tom Rogers" <[EMAIL PROTECTED]> Sent: Saturday, September 03, 2005 10:49 AM Subject:

Re: [PHP] socket_read() trouble with PHP_BINARY_READ

2005-09-03 Thread M. Sokolewicz
hello, thank you for the help, but I've tried your code, and it returns the exact same thing :( the error #11 temporarily unavailable. If I remove non-blocking, or change the error to ignore to 11 (10035 in your code example) it simply "hangs" doing nothing *at all*... I'm stumped; really..

Re: [PHP] socket_read() trouble with PHP_BINARY_READ

2005-09-02 Thread Tom Rogers
Hi, Saturday, September 3, 2005, 9:19:11 AM, you wrote: MS> hello, MS> I'm writing a socket approach to send email directly via an SMTP server MS> (since some hosts block sendmail trough php due to abuse). Now, I have MS> the code, attached below: MS> I have cut it down slightly so it would still