Calling a function from another page in php
<p>I am call a function which is defined in my smsconfig.php file like </p>

<pre><code>$GLOBAL_URL_OF_THE_SITE= "http://webfaction";


function get_site_url(){
    return $GLOBAL_URL_OF_THE_SITE; 
}
</code></pre>

<p>In my index.php file, I am including that smsconfig.php file then I am doing the following:</p>

<pre><code>  &lt;?php 
    include("smsconfig.php");
    ?&gt;
    &lt;html&gt;
    &lt;head &gt;
     &lt;link rel="stylesheet" type="text/css" href="default.css" /&gt;
        &lt;script src="&lt;?php echo get_site_url();?&gt;/UI/jquery/jquery-1.7.2.min.js" type="text/javascript"&gt;&lt;/script&gt;
</code></pre>

<p>unfortunately my JS is not loading and I am getting the following error in firebug:</p>

<pre><code>"NetworkError: 404 Not Found - http://webfaction/UI/%3Cbr%20/%3E%3Cb%3ENotice%3C/b%3E:%20%20Undefined%20variable:%20GLOBAL_URL_OF_THE_SITE%20in%20%3Cb%3E/opt/lampp/htdocs/UI/smsconfig.php%3C/b%3E%20on%20line%20%3Cb%3E11%3C/b%3E%3Cbr%20/%3E/UI/jquery/jquery-1.7.2.min.js"
</code></pre>

<p>Please tell me what I am doing wrong ?</p>
