Re: Socket help

From: Date: Tue, 25 Sep 2001 20:45:12 +0000
Subject: Re: Socket help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68773@lists.php.net to get a copy of this message
your server has to open a connection to a remote host to see if there are messages ? like email ? if this is so then use cron once every so often to check if there are new messages. if the remote host makes a connection to your server the use tcp_wrappers to call your php script. the second script can NOT use the first apps socket, sockets arent shared like that. yes, sending and recienveing should be ok, any data backed up will just be stored in buffers. -- Chris Lee lee@mediawaveonline.com "Stefano Baronio" <stefano@steu.it> wrote in message news:BOEMIIGHEGOBECJLAKJIEEOECKAA.stefano@steu.it... > Hello list, > I need to receive/send sms through an IPSec connection > using the socket (pfsocket) function of php. > I hope there's someone out there that can help me solving > some questions. > > Here is what I thought to do: > REC_SCRIPT that open the socket connection and listen on > arriving messages (msg will be stored in mysql) > SEND_SCRIPT that is launched from a html form and use that > socket to send the message and store it in myslq. > > Questions > 1. Can the REC_SCRIPT stay alive listening on the persistent > socket connection ? > 2. There's a way to launch it automagically when I start > apache ? > 3. Can the SEND_SCRIPT use the socket conn. opened by the > first script ? > 4. In case of receive/send in the same time, will all be ok > ? > > Thank you very much for any help > > Stefano Baronio > > sbaronio@sateltrack.com > www.sateltrack.com >

« previous php.general (#68773) next »