I'm trying to make a persistant connection over a series of pages. I'm using pfsockopen in a class and I have no problem moving the object from one page to another. The problem I have is communicating with the socket after the first page.
Kinda like this more or less.
-=-= page1.php =-=-
require("MyClass.php");
$myclass = new MyClass();
// open persistant connection.
$myclass->connect($host,$port);
session_start();
session_register("myclass");
-=-= page2.php =-=-
require("MyClass.php");
session_start();
// close connection.
$myclass->disconnect();
-=-=-=-=-=-=-=-=-=-=
The socket will not close on the second page. I'm using apache-1.3.19 and php-4.0.5.