Date: 02/29/00
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #3667 Updated: odbc_execute() reports failure for SQL_SUCCESS_WITH_INFO"
- Previous message: Hans Kind: "[PHP-DEV] autoconf"
- In reply to: Jerry: "[PHP-DEV] HTTP server in PHP"
- Next in thread: Jerry: "[PHP-DEV] HTTP server in PHP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Jerry wrote:
>
> Hi,
>
> I'm trying to write a HTTP server in PHP.
>
> Dose any body know how to make a comand line run script act as a damon
> and listen to a port ?
>
> I've seen it done before in PHP3 , but cant remember how ot was done.
Since you're already doing it with PHP, which is hairy, you might as
well run it from /etc/inetd.conf and use stdin and stdout. Not very
efficient, but hey... ;-)
fopen("php://stdin", "r") and fopen("php://stdout", "w") should do the
trick then.
- Stig
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #3667 Updated: odbc_execute() reports failure for SQL_SUCCESS_WITH_INFO"
- Previous message: Hans Kind: "[PHP-DEV] autoconf"
- In reply to: Jerry: "[PHP-DEV] HTTP server in PHP"
- Next in thread: Jerry: "[PHP-DEV] HTTP server in PHP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

