Puedes meterlo en variables de Session
primero hazte una clase simple para manejo de sockets
las operaciones basicas conectar , cerrar la conexion, recoger datos , enviar datoss y lo que creas necesario , despues haz un include de esa clase y crea una variable session de una instancia de esa clase
asi la session se encargara de hacer perdurar tu objeto
Saludos
Intente lo de las sesiones y no funciono..

El identificador de la conexion se me desaparace en cuanto intento enviar un comandp..

Aca lo basico del codigo para ver si alguien detecta cual es el error..

Code: Page.php
Obtengo el servidor al que me voy a conectar...
<?php
session_start();//Start session
header("Cache-control: provate");//Fix the IE6 Sessions problem
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="
http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<form action="page2.php" method=post>
<input name="server" type="text" id="text" />
<input type="submit" name="Submit" value="Submit" />
</form>
</body>
</html>
CODE: page2.php
Aqui hago todo el manejo... El problema es que el identificador del Socket de la conexion se desaparece en cuanto intento enviar un commando..

\
<?php
session_start();//Start out session
header("Cache-control: provate");//Fix the IE6 Sessions problem
?>
<?php
if($HTTP_POST_VARS["server"])
{
$_SESSION['server'] = $HTTP_POST_VARS["server"];
$_SESSION['conection'] = fsockopen($_SESSION['server'],25);
$_SESSION['screen']=fgets($_SESSION['conection'],256);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="
http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Typer" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {font-family: Verdana, Arial, Helvetica, sans-serif}
-->
</style>
</head>
<body>
<p align="center" class="style1">SERVER: <?php print($_SESSION['server']) ?> </p>
<p align="center" class="style1">CONECTION: <?php print($_SESSION['conection']) ?> </p>
<p align="center">
<?php
if($HTTP_POST_VARS["command"])
{
fwrite($_SESSION['conection'], $HTTP_POST_VARS["command"]);
$response=fgets($_SESSION['conection'],256) ;
$_SESSION['screen'] = $_SESSION['screen']."\r\n". $HTTP_POST_VARS["command"]."\r\n".$response;
}
?>
<form action="page2.php" method=post>
<div align="center">
<textarea name="Tex" cols="40" rows="10" id="Tex"><?php print($_SESSION['screen'])?>
</textarea>
</p>
</div>
<p align="center">
<input name="command" type="command" id="command" />
</p>
<p align="center">
<input type="submit" name="Submit" value="Submit" />
</p>
</body>
</html>