Topic: PHP -- Including files in functions
Heres my problem. I have a file that handles many functions (functions.php). One of those functions echos a message, includes footer.php, and exits.
It displays the message fine, and exits, but just wont load the footer.php file.
Heres some code to help explain further
##functions.php
#
// This function will end the scirpt. and echo $message
function quiting($message) {
echo $message;
include("footer.php");
exit;
}
#
##whatever.php
quiting("message");
#
and it doesnt work!
What it does is exucute the file perfectly up to the quiting("message");, then it will echo "message", and quit the script, without loading footer.php.
Anyone know what to do, or could it just be my server, and some setting I could fix in PHP.ini?
$theQuestion = (2*b) || !(2*b);