| 
 Posted by Alvaro G. Vicario on 06/14/44 11:57 
*** CptDondo escribió/wrote (Wed, 06 Sep 2006 10:12:12 -0700): 
> I've been asked to port this to an ANSI terminal-type display,  
> eliminating the web server and browser. 
 
Headers are part of the HTTP protocol. Every piece of software that uses 
HTTP *must* understand headers. So (as you mention) you must get rid of 
HTTP and write your own server with your own protocol. 
 
I haven't tested myself but this article describes how to create a PHP 
script that listens in a TCP port: 
 
http://www.litfuel.net/tutorials/sockets/sockets.php 
 
You will find the full reference (as well as some self-explaining code 
snippets) in the "Socket Functions" chapter of the PHP manual. 
 
 
--  
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain 
++ Mi sitio sobre programación web: http://bits.demogracia.com 
+- Mi web de humor con rayos UVA: http://www.demogracia.com 
--
 
  
Navigation:
[Reply to this message] 
 |