fixing many of headers and cookies problems
<p>i am still beginner in PHP but i found that one of the good things when you want to Avoid scripting headache is to turn output buffering on, specially that the script may work well in localhost but you face some troubles when you upload it to your site</p>

<p>simply at the top of your code before any HTML code you have to write</p>

<pre><code>&lt;?php ob_start(); ?&gt;
</code></pre>

<p>and in the bottom of your code end it using</p>

<pre><code>&lt;?php ob_end_flush(); ?&gt;
</code></pre>

<p>i hope it can save many of scripting headache </p>
