Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #4899

Re: Do I still CLI version of PHP

From "J.O. Aho" <user@example.net>
Newsgroups comp.lang.php
Subject Re: Do I still CLI version of PHP
Date 2012-02-19 10:05 +0100
Message-ID <9qbsb8FpmvU1@mid.individual.net> (permalink)
References <jhq7fr$8om$1@news.albasani.net>

Show all headers | View raw


sl@exabyte wrote:

> 1. Do still need the line '#!/usr/local/bin/php -q' is I call the file via
> http, eg http://domain/server_socket.php, because the program is looping ?

No, as the web service  will be calling the php interpreter, but as soon as 
you leave the "page" with your browser the script will die.

> 2. If the answer to Q1is yes, how do I run my server program (I think the
> version on my server is CGI) ?

You need to have shell access and run the script in background or in a screen 
(or rewrite it so it can be run as a daemon).


-- 

   //Aho

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Do I still CLI version of PHP "sl@exabyte" <sb5309@hotmail.com> - 2012-02-19 15:13 +0800
  Re: Do I still CLI version of PHP "J.O. Aho" <user@example.net> - 2012-02-19 10:05 +0100
  Re: Do I still CLI version of PHP "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-02-19 13:26 +0100

csiph-web