Call a function from one PHP file to another
<p>I am not quite sure why have I not been able to call a function from say File1 to File2 . I have used the require_once also . </p>

<p>Eg : </p>

<pre><code>File1.php

&lt;?php
function Test()
{
alert("Hello");
}
?&gt;

File2

&lt;?php
require_once("File1.php");

My code 
?&gt;

&lt;script type="text/javascript"&gt;

My code....

$("#email_summary").click(function() {
     &lt;?php    
     Test();   
     ?&gt;                            
});
&lt;/script&gt;
</code></pre>

<p>Could you please let me know my mistake ? 
Thanks guys :)</p>
