Re: [PHP] The stupidest question of the month.

2003-08-14 Thread Dan J. Rychlik
] To: php [EMAIL PROTECTED] Sent: Thursday, July 17, 2003 4:17 PM Subject: [PHP] The stupidest question of the month. (Okay, now you're prepared...) I need to write a little program that opens and maintains a TCP socket connection to a server across the Internet. This little program would wait

Re: [PHP] The stupidest question of the month.

2003-07-19 Thread Juan Nin
From: René Fournier [EMAIL PROTECTED] I need to write a little program that opens and maintains a TCP socket connection to a server across the Internet. This little program would wait for messages from the server it's connected to, then record those messages and send a kinda of acknowledgment

[PHP] The stupidest question of the month.

2003-07-17 Thread René Fournier
(Okay, now you're prepared...) I need to write a little program that opens and maintains a TCP socket connection to a server across the Internet. This little program would wait for messages from the server it's connected to, then record those messages and send a kinda of acknowledgment Got it.

Re: [PHP] The stupidest question of the month.

2003-07-17 Thread Evan Nemerson
Since you don't need to put up a server, you can just use fsockopen. If I recall correctly, passing the timeout argument as 0 means no timeout... If you use the cli version of php, you can just enter `php -q myscript.php ` on the command line (doubt this works w/ m$...). The ampersand tells the