I am running into a weird issue with a file include in PHP. This file has a class definition, but when I try to include it in a script, the script terminates at the point of inclusion. Here's an example:
<?php
require_once('../php_include/twitter_config.php');
echo 'line '.__LINE__.' executed</br />';
require_once('../php_include/db_config.php');
echo 'line '.__LINE__.' executed</br />';
require_once('../php_include/db_lib.php');
echo 'line '.__LINE__.' executed</br />';
?>
When I run this script, I always get:
line 3 executed
line 5 executed
And as you can see, I did not create an instance of the class defined in db_lib.php. The IDE I'm using (netbeans) does not seem to think that there are any errors in db_lib.php. Any ideas why this might be happening?