PHP Fatal error: Call to undefined function when function is defined
<p>I have a basic code here:</p>

<pre><code>include('Core/dAmnPHP.php');

$tokenlist = array();
foreach($users as $username =&gt; $password) {
    $socket[$username] = socket_create(AF_INET,SOCK_STREAM,SOL_TCP);
    @socket_connect($socket[$username], "chat.deviantart.com", 3900);
    $connected = TRUE;
    send("dAmnClient 0.3\nagent=IdleClient\n".chr(0), $username);
    $tokenarray = getCookie($username, $password);
    $token = $tokenarray['cookie'];
    $tokenlist[$username] = $token;
}
</code></pre>

<p>Inside of dAmnPHP.php, it includes a function called getCookie, however every time I run my script it tells me that the function is undefined.  Any ideas?  Thanks.</p>
