Web Hosting Talk







View Full Version : php main error


mtmmrkt
06-22-2003, 05:01 PM
Can someone who knows php please tell me how to correct an error I am getting.

The error states:
Warning: main(includes/data_layer.php) [function.main]: failed to create stream: No such file or directory in /home/priomail/public_html/test/includes/config.php on line 3

Warning: main(includes/data_layer.php) [function.main]: failed to create stream: No such file or directory in /home/priomail/public_html/test/includes/config.php on line 3

Warning: main() [function.main]: Failed opening 'includes/data_layer.php' for inclusion (include_path='/usr/local/lib/php:/usr/lib/php') in /home/priomail/public_html/test/includes/config.php on line 3

Warning: main(includes/template.php) [function.main]: failed to create stream: No such file or directory in /home/priomail/public_html/test/includes/config.php on line 4

Warning: main(includes/template.php) [function.main]: failed to create stream: No such file or directory in /home/priomail/public_html/test/includes/config.php on line 4

Warning: main() [function.main]: Failed opening 'includes/template.php' for inclusion (include_path='/usr/local/lib/php:/usr/lib/php') in /home/priomail/public_html/test/includes/config.php on line 4

Fatal error: Cannot instantiate non-existent class: schema in /home/priomail/public_html/test/includes/config.php on line 8

So I opened up the config.php file and these are the first few lines:
<?
/* global includes */
include('includes/data_layer.php');
include('includes/template.php');

Do I need to change something so it doesn't look for "main"?
Any help is appreciated.

mtmmrkt
06-22-2003, 05:27 PM
Okay, disregard. It is fixed.