Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199903

[PHP3] PHP without a webserver From: Aaron Blair (ablair <email protected>)
Date: 03/30/99

Is it possible to make PHP display a page outside of the webserver?

I have compiled PHP as CGI and created a file called phptest. This file is
just:

#!/usr/sbin/php
<?
print "hello freaking world";
?>

Thats it. Then in inetd.conf I add the proper port and entry for tcpd to
send the output of phptest to the port 9119. So then when I connect the
browser to my server port 9119 I get:

Content-type: text/html Hello World

On a blank page.

How do I keep it from saying content-type on the page instead of netscape
reading that and realiznig it's recieveing html?

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev-list-admin <email protected>