FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Do I still CLI version of PHP
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Do I still CLI version of PHP [message #177082 is a reply to message #177081] Sun, 19 February 2012 09:05 Go to previous messageGo to previous message
J.O. Aho is currently offline  J.O. Aho
Messages: 194
Registered: September 2010
Karma:
Senior Member
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
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Mail() function not working in PHP5
Next Topic: photo gallery
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 00:20:55 GMT 2024

Total time taken to generate the page: 0.04064 seconds