Javascript inside PHP - Quote problems
<p>I need to include some javascript in my php file but im having difficulty with the quotes inside the javascript </p>

<p><b>This is the javascript:</b></p>

<pre><code>&lt;scripttype="text/javascript"&gt;

    var sc_project = $$$$;

    var sc_invisible = $;

    var sc_security = "$$$$$$$";

    var scJsHost = (("https:" == document.location.protocol) ? "https://secure." : "http://www.")

    document.write("&lt;sc" + "ript type='text/javascript' src='" + scJsHost + "statcounter.com/counter/counter.js'&gt;&lt;/" + "script&gt;");

&lt;/script&gt;
</code></pre>

<p><b>I tried </b></p>

<pre><code>echo {
    '&lt;scripttype="text/javascript"&gt;

                var sc_project = $$$$$$;

                var sc_invisible = $;

                var sc_security = "$$$$$$";

                var scJsHost = (("https:" == document.location.protocol) ? "https://secure." : "http://www.")

                document.write("&lt;sc" + "ript' . 'type=\'text/javascript\' src='' . ' + scJsHost + "statcounter.com/counter/counter.js'.'&gt;&lt;/" + "script&gt;");

            &lt;/script&gt;';
        }
</code></pre>

<p>Any way to have this appear on my php page?</p>
