a interesting prob

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
matthiasone
Forum Contributor
Posts: 117
Joined: Mon Jul 22, 2002 12:14 pm
Location: Texas, USA
Contact:

a interesting prob

Post by matthiasone »

I added a required_once() call and all the pages are blank. Why is this?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

set error_reporting to E_ALL, check your error logs. I'd bet the file doesn't exist, or you misspelled the function name (as you did here.)
matthiasone
Forum Contributor
Posts: 117
Joined: Mon Jul 22, 2002 12:14 pm
Location: Texas, USA
Contact:

Post by matthiasone »

here is the calling code

Code: Select all

<?
require_once('/usr/web/domains/lufkinsection-rr/www/functions/db_fns.php');
require_once('/usr/web/domains/lufkinsection-rr/www/functions/cal_fns.php');
require_once('output_fns2.php');
require_once('calender_fns.php');
require_once('staff_fns2.php');
require_once('contact_fns.php');
require_once('resources_fns.php');
require_once('tree_fns.php');
require_once('outpost_fns2.php');
?>
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

did you turn error_reporting on and to E_ALL? Display errors on as well? What did the error logs say?
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

Your pages will be blank if:

1. A require does not find the specified file

and

2. If error reporting is disabled, or not set to report warnings.

Usually a failed require would display a fatal error...
Could you also confirm that one of your required files actually outputs something?
Post Reply