> > Hi to all, > > > > Is it possible to run php in the web running in a specified port without > > installing apache in Linux? > > > > Can anyone give a sample code for this? I'm searching this for a week but i > > really can find one. Please help us. > > > > > > > > Regards, > > > > Mike > > > Do you mean to host websites with ONLY php and without webserver? Or do > you mean using PHP for something else then web, to make it listen for > incomming connections?
Actually i want to create a server utility that can be administered through web via a certain port, i'm afraid not to use php as an apache module because the server might have an existing webserver installed, so i came out into an idea to use php cgi/cli to run in a specified port and view it in the web. It is somewhat similar to some existing utilities such as WEBMIN which use perl cgi, but i really dont have a very good start since i dont have enough examples for this. I've already opened opened port for this as what David said but i cant see the output in the web. He'res what i've did in my Redhat linux 6.x inetd.conf: samples stream tcp nowait.1000 root.root /usr/local/mikecarel/samples samples services: samples 6886/tcp samples: #!/usr/local/bin/php -q <?php echo "Content-Type: text/html;charset=iso-8859-1"; echo "\n"; echo "<html>hello </html>"; ?> Am I in a right track? or is it possible with this? Do i missed something here? Thanks in advance. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php