Unknown function
<p>I have a script called ranking.php. I call this script at the top of another script (headtohead.php) as follows:</p>

<pre><code>include("ranking.php");
</code></pre>

<p>Within the ranking script, there is a function called 'win'. In the headtohead.php script, I have a function with the following:</p>

<pre><code>global $form, $database, $foottour, $ranking;
</code></pre>

<p>And then within the function itself:</p>

<pre><code>$newHomePoints = $ranking-&gt;win($homePoints, $homescore, $awayscore, ($homeStar - $awayStar));
</code></pre>

<p>I am getting the error saying that the function 'win' on the line where it's called is unknown?</p>
