Re: File and socket handles
| From: | Robin Gilks | Date: | Sun, 03 Dec 2000 10:48:24 +0000 |
| Subject: | Re: File and socket handles | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-28426@lists.php.net to get a copy of this message | ||
On Saturday 02 December 2000 19:08, you wrote:
> On Sat, 2 Dec 2000, Robin Gilks wrote:
> > Greetings all
> >
> > I've scanned the list archives but not found anything that relates to my
> > problem with socket handles.
> >
> > I want to open a socket connection from one frame (script) and transmit
> > data to the user from that socket - no problem there, all working fine
> > using either fsockopen or pfsockopen.
> You can't. The socket (and in fact, any PHP resource except a persistent DB
> connection) is closed once the first script stops running.
Thanks for that - looks like I'll have to do the output in a loop and scan
for input in the same loop & use the input script to transfer the data across
via Mysql or similar...
Cheers
--
Robin
Internet: g8ecj@abmdata.demon.co.uk http://www.gb7ipd.freeserve.co.uk/
Anorak mode = Shack: (+44) 1628 533311 Fax: (+44) 1628 850165
Club pages (g4xyw modem etc) at http://www.tvipug.org