Strange Behaviour in Background PHP Exec() Process
<p>I have a auto tweet function for my own directory site. I have added bitly url to shorten the url along with the post title.</p>

<p>I have shortened the title to max 110 characters.</p>

<p>Auto tweet post format is, </p>

<p>title and the bitly url</p>

<p>When I approve a website, I have set the php exec() as</p>

<pre><code>exec ("/usr/local/bin/php /home/mydomain/public_html/administrator/AutoTweet.php &gt;/dev/null &amp;");
</code></pre>

<p>Script works fine and it auto tweets also, but only the title not the bitly url.</p>

<p>Even when I run the cron, it is the same</p>

<p>To test my script, I change that php exec() to header loacation as follow:</p>

<pre><code>header("Location:AutoTweet.php");exit;
</code></pre>

<p>Voila! it posts both, the tile and bitly url</p>

<p>Even, When I open the url on the browser, it posts the status as required but with phpexec() is not working at all.</p>

<p>what could be the issue? your input and advise will help me a lot.</p>

<p>Thanks in anticipation</p>
