I am including a file in one of my other php files by doing this:
include(dirname(__FILE__) . '/send_notification.php');
The code of the file I am including looks like this:
<?php
echo "Here!";
if(false === function_exists('sendNotification')) {
function sendNotification() {
echo "I HATE THIS";
}
}
echo "There!"
?>
The File is included as follows:
include_once(dirname(__FILE__) . '/send_notification.php');
echo "And Here!";
But its only echoing this:
Here!There!
What is going on?