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, 2007 3:50 PM
To: php-general@lists.php.net
Subject: Re: [PHP] socket_read can not read the whole HTTP page?
On Fri 28 Dec
?
best regards!
ked
-Original Message-
From: Eddie Dunckley [mailto:[EMAIL PROTECTED]
Sent: Friday, December 28, 2007 3:50 PM
To: php-general@lists.php.net
Subject: Re: [PHP] socket_read can not read the whole HTTP page?
On Fri 28 Dec 07, ked wrote:
I wrote those script to get
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)) .
browser show the processbar all the time , and the page is not completed
display,
If I press ESC key to cancel the request , the
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;
$in .=
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 done.
Hello. I'm tried an example from PHP manual with simple TCP/IP Client.
I'm create a socket to FTP server, then read data from socket
[PHP]
while ($out = socket_read($socket, 2048)) {
echo $out;
}
[/PHP]
when all data are read, socket_read() don't return an empty string, it's
hangs.
Can you
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
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
Ok, any standard value for the size to read per time? Will the total time be
faster if a larger maximum size is choosed?
-Original Message-
From: Oli Howson [mailto:[EMAIL PROTECTED]
Sent: Friday, February 10, 2006 12:10 AM
To: php-general@lists.php.net
Subject: Re: [PHP] socket_read
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:[EMAIL PROTECTED]
Sent: Thursday, February 09, 2006 7:05 PM
To: 'PHP General Users'
Subject: [PHP] socket_read
Best
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 be
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..
Hi there!
Can't it be anything with filepermissions? Just a clue...
/G
@varupiraten.se
- Original Message -
From: M. Sokolewicz [EMAIL PROTECTED]
To: php-general@lists.php.net; Tom Rogers [EMAIL PROTECTED]
Sent: Saturday, September 03, 2005 10:49 AM
Subject: Re: [PHP] socket_read
Hi,
Saturday, September 3, 2005, 6:49:54 PM, you wrote:
MS hello,
MS thank you for the help, but I've tried your code, and it returns the
MS exact same thing :( the error #11 temporarily unavailable. If I remove
MS non-blocking, or change the error to ignore to 11 (10035 in your code
MS example)
; 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 unavailable. If I
remove non-blocking
. Sokolewicz [EMAIL PROTECTED]
To: php-general@lists.php.net; 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
hello,
I'm writing a socket approach to send email directly via an SMTP server
(since some hosts block sendmail trough php due to abuse). Now, I have
the code, attached below:
I have cut it down slightly so it would still be readable though. I'm
very sure that none of the stuff I removed
I'm having a problem with socket read, it's only reading one character.
This may not sound so bad, but when you think that while it's reading all
those one characters, it cannot read anyone else's (it blocks).
Can anyone explain, or have a better way of doing this?
Code below:
?php
18 matches
Mail list logo