<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Execute Linux commands in PHP by using backticks</title>
	<link>http://blog.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/</link>
	<description>Another Blog on Linux &#38; PHP Web Development theory &#38; practice</description>
	<pubDate>Wed, 19 Nov 2008 13:51:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: ahmed</title>
		<link>http://blog.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-362</link>
		<dc:creator>ahmed</dc:creator>
		<pubDate>Tue, 21 Oct 2008 19:05:33 +0000</pubDate>
		<guid>http://blog.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-362</guid>
		<description>thank you man ilove you php</description>
		<content:encoded><![CDATA[<p>thank you man ilove you php</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rvdavid</title>
		<link>http://blog.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-317</link>
		<dc:creator>rvdavid</dc:creator>
		<pubDate>Fri, 15 Aug 2008 05:05:10 +0000</pubDate>
		<guid>http://blog.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-317</guid>
		<description>hmmm that seems odd, it should work, but well some servers I've come accross have disabled such php features. Maybe that's the problem. 

for example, the following excerpt produced some output for me. 

-- code
&lt;code&gt;
&#60;?php
$cmd = 'ls -la'; // the linux command
$files = array(); // init the output array
exec($cmd, $files); // execute the linux command and put the output in output array

// dump the output
echo '&#60;pre&#62;';
print_r($files);
echo '&#60;/pre&#62;';
&lt;/code&gt;

Anyway, check out the php manual site for more info on exec, perhaps they'll have some more information for you.  :)
http://au2.php.net/manual/en/function.exec.php</description>
		<content:encoded><![CDATA[<p>hmmm that seems odd, it should work, but well some servers I&#8217;ve come accross have disabled such php features. Maybe that&#8217;s the problem. </p>
<p>for example, the following excerpt produced some output for me. </p>
<p>&#8211; code<br />
<code><br />
&lt;?php<br />
$cmd = 'ls -la'; // the linux command<br />
$files = array(); // init the output array<br />
exec($cmd, $files); // execute the linux command and put the output in output array</p>
<p>// dump the output<br />
echo '&lt;pre&gt;';<br />
print_r($files);<br />
echo '&lt;/pre&gt;';<br />
</code></p>
<p>Anyway, check out the php manual site for more info on exec, perhaps they&#8217;ll have some more information for you.  :)<br />
<a href="http://au2.php.net/manual/en/function.exec.php" rel="nofollow">http://au2.php.net/manual/en/function.exec.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://blog.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-314</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Thu, 14 Aug 2008 15:53:11 +0000</pubDate>
		<guid>http://blog.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-314</guid>
		<description>OK, and the sintaxis to pass variables to the linux shell? exec('tar -xzvf $anyfile'); does not seem to work</description>
		<content:encoded><![CDATA[<p>OK, and the sintaxis to pass variables to the linux shell? exec(&#8217;tar -xzvf $anyfile&#8217;); does not seem to work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Binny V A</title>
		<link>http://blog.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-312</link>
		<dc:creator>Binny V A</dc:creator>
		<pubDate>Mon, 04 Aug 2008 16:59:24 +0000</pubDate>
		<guid>http://blog.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-312</guid>
		<description>You can also execute commands using exec(), system() and popen().</description>
		<content:encoded><![CDATA[<p>You can also execute commands using exec(), system() and popen().</p>
]]></content:encoded>
	</item>
</channel>
</rss>
