<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Making PHP program as Daemon</title>
	<atom:link href="http://bipinb.com/making-php-program-as-daemon.htm/feed" rel="self" type="application/rss+xml" />
	<link>http://bipinb.com/making-php-program-as-daemon.htm</link>
	<description></description>
	<lastBuildDate>Wed, 06 Jan 2010 11:12:51 +0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Run PHP script as a Daemon » Van-Hout</title>
		<link>http://bipinb.com/making-php-program-as-daemon.htm/comment-page-1#comment-228</link>
		<dc:creator>Run PHP script as a Daemon » Van-Hout</dc:creator>
		<pubDate>Fri, 02 Oct 2009 12:29:23 +0000</pubDate>
		<guid isPermaLink="false">http://bipinb.com/?p=68#comment-228</guid>
		<description>[...] I needed to run a PHP script in the background on my Ubuntu 8.04 server, but didn’t know how to do this. Googling around I found the following script to daemonize PHP scripts on bipinb.com: [...]</description>
		<content:encoded><![CDATA[<p>[...] I needed to run a PHP script in the background on my Ubuntu 8.04 server, but didn’t know how to do this. Googling around I found the following script to daemonize PHP scripts on bipinb.com: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maarten</title>
		<link>http://bipinb.com/making-php-program-as-daemon.htm/comment-page-1#comment-227</link>
		<dc:creator>Maarten</dc:creator>
		<pubDate>Fri, 02 Oct 2009 12:17:25 +0000</pubDate>
		<guid isPermaLink="false">http://bipinb.com/?p=68#comment-227</guid>
		<description>Hello ldaves,

the reason your script closes is most likely because you use echo&#039;s that write to the STDOUT of your current session. If you logout, that will cause fatal errors and the daemon to die.

So remove all echo&#039;s and/or redirect output to a logfile.

Hope this is usefull info.</description>
		<content:encoded><![CDATA[<p>Hello ldaves,</p>
<p>the reason your script closes is most likely because you use echo&#8217;s that write to the STDOUT of your current session. If you logout, that will cause fatal errors and the daemon to die.</p>
<p>So remove all echo&#8217;s and/or redirect output to a logfile.</p>
<p>Hope this is usefull info.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Teft</title>
		<link>http://bipinb.com/making-php-program-as-daemon.htm/comment-page-1#comment-168</link>
		<dc:creator>Teft</dc:creator>
		<pubDate>Sun, 29 Mar 2009 07:35:21 +0000</pubDate>
		<guid isPermaLink="false">http://bipinb.com/?p=68#comment-168</guid>
		<description>Awesome code!  Just what I was looking for to create a &#039;publishing queue&#039; :)</description>
		<content:encoded><![CDATA[<p>Awesome code!  Just what I was looking for to create a &#8216;publishing queue&#8217; <img src='http://bipinb.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://bipinb.com/making-php-program-as-daemon.htm/comment-page-1#comment-143</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 10 Nov 2008 14:35:14 +0000</pubDate>
		<guid isPermaLink="false">http://bipinb.com/?p=68#comment-143</guid>
		<description>hello frankvw
Happy to hear from you....</description>
		<content:encoded><![CDATA[<p>hello frankvw<br />
Happy to hear from you&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: frankvw</title>
		<link>http://bipinb.com/making-php-program-as-daemon.htm/comment-page-1#comment-142</link>
		<dc:creator>frankvw</dc:creator>
		<pubDate>Mon, 10 Nov 2008 10:35:54 +0000</pubDate>
		<guid isPermaLink="false">http://bipinb.com/?p=68#comment-142</guid>
		<description>I&#039;d just like you to know that you saved my @$$ with this one! I&#039;m developing a PHP CLI application on Ubuntu Linux that has to run in the background, and due to some nasty issue with some Debian-based distro&#039;s (having to do with libraries, apparently) running a PHP cli script in the background from the commmand line (as in &quot;php script.php &amp;) doesn&#039;t work on Ubuntu. (It works fine on many other distro&#039;s that I have tried, though.)

As I&#039;m developing this for a client and we&#039;re been working on it for several months I was looking at a platform change this late in the project, which is enough to keep ten guys like me awake nights... because there doesn&#039;t seem to be an easy fix for this issue on Ubuntu.

Fortunately your daemon code runs like a charm. Thank you so much - you&#039;ve saved me a lot of sleepless nights!

// FvW</description>
		<content:encoded><![CDATA[<p>I&#8217;d just like you to know that you saved my @$$ with this one! I&#8217;m developing a PHP CLI application on Ubuntu Linux that has to run in the background, and due to some nasty issue with some Debian-based distro&#8217;s (having to do with libraries, apparently) running a PHP cli script in the background from the commmand line (as in &#8220;php script.php &amp;) doesn&#8217;t work on Ubuntu. (It works fine on many other distro&#8217;s that I have tried, though.)</p>
<p>As I&#8217;m developing this for a client and we&#8217;re been working on it for several months I was looking at a platform change this late in the project, which is enough to keep ten guys like me awake nights&#8230; because there doesn&#8217;t seem to be an easy fix for this issue on Ubuntu.</p>
<p>Fortunately your daemon code runs like a charm. Thank you so much &#8211; you&#8217;ve saved me a lot of sleepless nights!</p>
<p>// FvW</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ldaves</title>
		<link>http://bipinb.com/making-php-program-as-daemon.htm/comment-page-1#comment-30</link>
		<dc:creator>ldaves</dc:creator>
		<pubDate>Mon, 28 Jul 2008 02:47:58 +0000</pubDate>
		<guid isPermaLink="false">http://bipinb.com/?p=68#comment-30</guid>
		<description>Hi,

Yeah. I did put the while loop.

But no sure why whenever I exit the terminal the script will be closing as well. So I have to use nohup to keep it running bg though I exit the terminal.

Sorry but I work in Solaris platform, &#039;ps -aux &#124; grep php&#039; does not work.

Thanks alot for replying.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Yeah. I did put the while loop.</p>
<p>But no sure why whenever I exit the terminal the script will be closing as well. So I have to use nohup to keep it running bg though I exit the terminal.</p>
<p>Sorry but I work in Solaris platform, &#8216;ps -aux | grep php&#8217; does not work.</p>
<p>Thanks alot for replying.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://bipinb.com/making-php-program-as-daemon.htm/comment-page-1#comment-29</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 26 Jul 2008 05:51:14 +0000</pubDate>
		<guid isPermaLink="false">http://bipinb.com/?p=68#comment-29</guid>
		<description>Hello ldaves,
Did you put the program or the function in while loop as i mentioned in the post.If so it should work as it worked for me.As a sample program you just make a file creation program and put it as what i told and call it with include statement and try.
Use &quot;ps aux &#124; grep php&quot; to check the process.</description>
		<content:encoded><![CDATA[<p>Hello ldaves,<br />
Did you put the program or the function in while loop as i mentioned in the post.If so it should work as it worked for me.As a sample program you just make a file creation program and put it as what i told and call it with include statement and try.<br />
Use &#8220;ps aux | grep php&#8221; to check the process.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ldaves</title>
		<link>http://bipinb.com/making-php-program-as-daemon.htm/comment-page-1#comment-28</link>
		<dc:creator>ldaves</dc:creator>
		<pubDate>Fri, 25 Jul 2008 22:27:29 +0000</pubDate>
		<guid isPermaLink="false">http://bipinb.com/?p=68#comment-28</guid>
		<description>i mean by log out the system.

i execute the code and then close the terminal window.
then i come back with ps -ef but see nothing.</description>
		<content:encoded><![CDATA[<p>i mean by log out the system.</p>
<p>i execute the code and then close the terminal window.<br />
then i come back with ps -ef but see nothing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://bipinb.com/making-php-program-as-daemon.htm/comment-page-1#comment-27</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 25 Jul 2008 17:13:08 +0000</pubDate>
		<guid isPermaLink="false">http://bipinb.com/?p=68#comment-27</guid>
		<description>Hello ldaves,
What you meant by logout here.Is it logging out from the system or from your application?.As its a daemon process which runs in back ground, it doesnt make any sense with log out.You will be wrong in the code, please read the post again and check the your code.</description>
		<content:encoded><![CDATA[<p>Hello ldaves,<br />
What you meant by logout here.Is it logging out from the system or from your application?.As its a daemon process which runs in back ground, it doesnt make any sense with log out.You will be wrong in the code, please read the post again and check the your code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ldaves</title>
		<link>http://bipinb.com/making-php-program-as-daemon.htm/comment-page-1#comment-26</link>
		<dc:creator>ldaves</dc:creator>
		<pubDate>Fri, 25 Jul 2008 16:41:43 +0000</pubDate>
		<guid isPermaLink="false">http://bipinb.com/?p=68#comment-26</guid>
		<description>when i execute it 
eg. /usr/php5/bin/php mydaemon.php

and logout. when i come back to check it out again it doesn&#039;t run anymore. why is it lieke that?</description>
		<content:encoded><![CDATA[<p>when i execute it<br />
eg. /usr/php5/bin/php mydaemon.php</p>
<p>and logout. when i come back to check it out again it doesn&#8217;t run anymore. why is it lieke that?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
