You are here: Problem with permanent socket connection « PHP Programming Language « IT news, forums, messages
Problem with permanent socket connection

Posted by Ismail Demiralp on 10/14/39 11:46

Hi,

I want to open a permanent socket connection to a service witch is running
on the same computer.
After I logged in on my php page, I start a session. After this a socket
connection should be opened to a service
I get data from. Now my problem is I want open only once a socket connection
to the service and after this I want use on
all php pages this connection. How can I transmit (or use) this one
connection on all pages ?

I opened the socket connection like this:

$fp = pfsockopen ($url, 1006, $errno, $errstr, 10);

This code snippet is running correctly, but on the next php page I can't use
this connection.

Thanx for Help

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация