<?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: How to run php script in shell</title>
	<atom:link href="http://www.myokyawhtun.com/tips-tricks/how-to-run-php-script-in-shell.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.myokyawhtun.com/tips-tricks/how-to-run-php-script-in-shell.html</link>
	<description>Code is Poetry</description>
	<lastBuildDate>Thu, 18 Oct 2012 14:28:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Myo Kyaw Htun</title>
		<link>http://www.myokyawhtun.com/tips-tricks/how-to-run-php-script-in-shell.html/comment-page-1#comment-195665</link>
		<dc:creator>Myo Kyaw Htun</dc:creator>
		<pubDate>Tue, 31 Jan 2012 18:08:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.myokyawhtun.com/2008/03/24/how-to-run-php-script-in-shell.html/#comment-195665</guid>
		<description>Great! Thanks a lot man!</description>
		<content:encoded><![CDATA[<p>Great! Thanks a lot man!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blausand</title>
		<link>http://www.myokyawhtun.com/tips-tricks/how-to-run-php-script-in-shell.html/comment-page-1#comment-165028</link>
		<dc:creator>blausand</dc:creator>
		<pubDate>Sun, 25 Sep 2011 14:49:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.myokyawhtun.com/2008/03/24/how-to-run-php-script-in-shell.html/#comment-165028</guid>
		<description>Is it feasible and/or advisable to combine shell/apache usage in one file?
I have a group of tasks that have to be called from website AND cronjob.
Can i use php in apache2 REGULARLY that contain the line #!/usr/bin/php ?
Will i be disappointed and give up on using parameters of both cases?

Thanks!</description>
		<content:encoded><![CDATA[<p>Is it feasible and/or advisable to combine shell/apache usage in one file?<br />
I have a group of tasks that have to be called from website AND cronjob.<br />
Can i use php in apache2 REGULARLY that contain the line #!/usr/bin/php ?<br />
Will i be disappointed and give up on using parameters of both cases?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian</title>
		<link>http://www.myokyawhtun.com/tips-tricks/how-to-run-php-script-in-shell.html/comment-page-1#comment-157499</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Tue, 13 Sep 2011 20:34:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.myokyawhtun.com/2008/03/24/how-to-run-php-script-in-shell.html/#comment-157499</guid>
		<description>On web servers where more then 2 php versions are installed &quot;which php&quot; can cause a problem. In my case the path was the path to the 4.2 version. I had to ask the hosting provider the right path.
But a very good tutorial!</description>
		<content:encoded><![CDATA[<p>On web servers where more then 2 php versions are installed &#8220;which php&#8221; can cause a problem. In my case the path was the path to the 4.2 version. I had to ask the hosting provider the right path.<br />
But a very good tutorial!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maggie</title>
		<link>http://www.myokyawhtun.com/tips-tricks/how-to-run-php-script-in-shell.html/comment-page-1#comment-98197</link>
		<dc:creator>maggie</dc:creator>
		<pubDate>Thu, 16 Dec 2010 05:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.myokyawhtun.com/2008/03/24/how-to-run-php-script-in-shell.html/#comment-98197</guid>
		<description>thanks a lott..!</description>
		<content:encoded><![CDATA[<p>thanks a lott..!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: crontab path difficulties</title>
		<link>http://www.myokyawhtun.com/tips-tricks/how-to-run-php-script-in-shell.html/comment-page-1#comment-93254</link>
		<dc:creator>crontab path difficulties</dc:creator>
		<pubDate>Thu, 25 Nov 2010 15:26:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.myokyawhtun.com/2008/03/24/how-to-run-php-script-in-shell.html/#comment-93254</guid>
		<description>[...] Create a PHP shell script: [...]</description>
		<content:encoded><![CDATA[<p>[...] Create a PHP shell script: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mary</title>
		<link>http://www.myokyawhtun.com/tips-tricks/how-to-run-php-script-in-shell.html/comment-page-1#comment-54604</link>
		<dc:creator>Mary</dc:creator>
		<pubDate>Fri, 08 Jan 2010 14:59:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.myokyawhtun.com/2008/03/24/how-to-run-php-script-in-shell.html/#comment-54604</guid>
		<description>Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul VK Khandelwal</title>
		<link>http://www.myokyawhtun.com/tips-tricks/how-to-run-php-script-in-shell.html/comment-page-1#comment-43362</link>
		<dc:creator>Rahul VK Khandelwal</dc:creator>
		<pubDate>Wed, 04 Nov 2009 09:39:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.myokyawhtun.com/2008/03/24/how-to-run-php-script-in-shell.html/#comment-43362</guid>
		<description>Thanks a ton Santiago. I changed the format with dos2unix and it worked for me.</description>
		<content:encoded><![CDATA[<p>Thanks a ton Santiago. I changed the format with dos2unix and it worked for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: santiago</title>
		<link>http://www.myokyawhtun.com/tips-tricks/how-to-run-php-script-in-shell.html/comment-page-1#comment-43346</link>
		<dc:creator>santiago</dc:creator>
		<pubDate>Wed, 04 Nov 2009 08:56:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.myokyawhtun.com/2008/03/24/how-to-run-php-script-in-shell.html/#comment-43346</guid>
		<description>Hey Rahul VK Khandelwal,

Your file might be in the wrong format. DOS format (newline is \r\n) instead of unix format (newline is \n).
Good luck

Santiago</description>
		<content:encoded><![CDATA[<p>Hey Rahul VK Khandelwal,</p>
<p>Your file might be in the wrong format. DOS format (newline is \r\n) instead of unix format (newline is \n).<br />
Good luck</p>
<p>Santiago</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul VK Khandelwal</title>
		<link>http://www.myokyawhtun.com/tips-tricks/how-to-run-php-script-in-shell.html/comment-page-1#comment-43328</link>
		<dc:creator>Rahul VK Khandelwal</dc:creator>
		<pubDate>Wed, 04 Nov 2009 08:15:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.myokyawhtun.com/2008/03/24/how-to-run-php-script-in-shell.html/#comment-43328</guid>
		<description>When I run &#039;which php&#039;....It shows me result as below
/usr/bin/php

I added the following line to my script
#!/usr/bin/php

But when I execute the script like &#039;./script.php&#039;, it shows me error as below.
-bash: ./script.php: /usr/bin/php^M: bad interpreter: No such file or directory

Please suggest what could be wrong here?

Thanks in advance ...</description>
		<content:encoded><![CDATA[<p>When I run &#8216;which php&#8217;&#8230;.It shows me result as below<br />
/usr/bin/php</p>
<p>I added the following line to my script<br />
#!/usr/bin/php</p>
<p>But when I execute the script like &#8216;./script.php&#8217;, it shows me error as below.<br />
-bash: ./script.php: /usr/bin/php^M: bad interpreter: No such file or directory</p>
<p>Please suggest what could be wrong here?</p>
<p>Thanks in advance &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john freeman</title>
		<link>http://www.myokyawhtun.com/tips-tricks/how-to-run-php-script-in-shell.html/comment-page-1#comment-42708</link>
		<dc:creator>john freeman</dc:creator>
		<pubDate>Sun, 01 Nov 2009 05:29:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.myokyawhtun.com/2008/03/24/how-to-run-php-script-in-shell.html/#comment-42708</guid>
		<description>thanks!  that was very helpful.   
I did at some point know this stuff, but I needed to know it again tonight, and now I do!
:)</description>
		<content:encoded><![CDATA[<p>thanks!  that was very helpful.<br />
I did at some point know this stuff, but I needed to know it again tonight, and now I do!<br />
:)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
