Call External Javascript using php
<p>I am try to add a javascript using php as follows</p>

<pre><code>&lt;?php
Header("content-type: application/x-javascript");
$serverIP=$_SERVER['REMOTE_ADDR'];
echo "document.write(\"Your IP address is: &lt;b&gt;" . $serverIP . "&lt;/b&gt;\")";
?&gt;
</code></pre>

<p>Here i need to print my output as follows</p>

<blockquote>
  <p>Your IP address is: <strong>127.0.0.1</strong></p>
</blockquote>

<p>but it is showing result like</p>

<pre><code>document.write("Your IP address is: &lt;b&gt;127.0.0.1&lt;/b&gt;").
</code></pre>

<p>i am using apache server in ubuntu.What is wrong with me. help me please...</p>
