i have a file called, let's say, stuff.php. i put this code in it:
<?PHP
function doSomething() {
# do something productive here
}
?>
and then in some other file i have this: (well call it otherstuff.php)
<?PHP
include 'stuff.php'; #yes it's in the right dir, etc.
function doSomethingElse() {
doSomething();
}
?>
but when i open the page it says this:
Quote:
|
Fatal error: Call to undefined function: doSomething() in /wherever_it_is/otherstuff.php
|
Does anybody know what may be causing this?