On Friday 03 January 2003 06:15 am, Gareth Hastings wrote:
> Yes I saw those but what it made me think, what's the point of a
> persistent socket if you can't use it again?
i think you could, after enough iterations and if the server allows,
get to a point where each process has its own persiste
Well if you do find the solution please let us know. I would also like to add it to my
PHP lib archive.
I suppose it would be there for stuff like command line PHP.
Mike
*** REPLY SEPARATOR ***
On 02/01/2003 at 5:15 PM Gareth Hastings wrote:
>Yes I saw those but what it mad
here is one about. Anyway back to google :)
> -Original Message-
> From: Michael J. Pawlowsky [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 02, 2003 5:10 PM
> To: Gareth Hastings; [EMAIL PROTECTED]
> Subject: RE: [PHP] Some questions regarding pfsocketopen()
>
Two comments from the manual that are interesting:
php dot net at domainofdarkness dot com
29-Jan-2001 04:26
OK, WRT to the p* functions opening a new connection when one already exists. It is my
understanting that (under Apache anyways) this is on a per-process basis. If you do a
'ps auxw|gr
t :/
> -Original Message-
> From: Michael J. Pawlowsky [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 02, 2003 4:32 PM
> To: Gareth Hastings
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] Some questions regarding pfsocketopen()
>
>
> Well I didnt try to wr
Well I didnt try to write or read to it...
But this works But all that's telling me is that the var is there.. not if it's
still open.. will leave that to you to find out... Let us know
--file s1.php ---
Next";
?>
file s2
Cool... Maybe I will learn something.. :-)
Well in that case (I already deleted you last mail), where are you keeping the file
pointer?
You will need to register the var somewhere.. In a session perhaps?
Mike
Send me your code... I will play with it...
*** REPLY SEPARATOR **
> You will need to have everythng on the same page. Your program ends
once
> the page does.
pfsocketopen() is persistent and stays open even after your script has
finished running until either the timeout period is reached or it gets
disconnected/closedI think. I just don't know how to acc
You will need to have everythng on the same page. Your program ends once the page
does.
Here are some examples straight from the manual.
\n";
} else {
fputs ($fp, "GET / HTTP/1.0\r\nHost: www.example.com\r\n\r\n");
while (!feof($fp)) {
echo fgets ($fp,128);
}
fclose ($f
file resource error.
> -Original Message-
> From: Chris Shiflett [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 02, 2003 2:47 PM
> To: Gareth Hastings; 'PHP-List'
> Subject: Re: [PHP] Some questions regarding pfsocketopen()
>
> --- Gareth Hastings
--- Gareth Hastings <[EMAIL PROTECTED]> wrote:
> Could anyone tell me, is it possible to connect to
> a persistent socket after it has been opened by a
> different script?
Sure. Think of it like a persistent database connection in
Oracle, where the listener is on socket 1521 for everyone.
The per
Could anyone tell me, is it possible to connect to a persistent socket
after it has been opened by a different script? There is little
documentation on this function. I did a quick search on google and lots
of people say you can't, some say you can but its really hard and the
rest go..."pf what??"
12 matches
Mail list logo