Jump to content

[SOLVED] Call to Undefined Function??


tetuanrp

Recommended Posts

I'm loading in an external script:

<?php
require_once('http://www.mysite.com/php/check_session.php');
checkSession('test');
?>

 

And my check_session.php file is this:

<?php
function checkSession($sessName) {
echo $sessName;
}
echo 'function loaded';
?>

 

Why would I be getting this? It's clearly defined and I'm calling it after I loaded in the check_session.php file (and I'm getting my echo test as well, so I know it's not a targetting issue):

Fatal error: Call to undefined function: checksession() in base.php on line 4

Link to comment
https://forums.phpfreaks.com/topic/51363-solved-call-to-undefined-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.