Re: Question About PHP Includes

From: Date: Thu, 03 Apr 2008 15:26:03 +0000
Subject: Re: Question About PHP Includes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-272488@lists.php.net to get a copy of this message
On Thu, Apr 3, 2008 at 11:22 AM, jwynacht <jon@objectevolution.com> wrote: > > Hi, > > I help maintain a Movable Type install for a non-profit organization. Things > have worked well with the site but the other day the home page went blank > and the rest of the pages lost all of their formatting. I've done some > debugging and it seems that some include statements are no longer working. > Here is the code: > > <?php > > ini_set("open_basedir",ini_get("include_path").":/some/absolute/path/to/httpdocs"); > > ini_set("include_path",ini_get("include_path").":/some/absolute/path/to/httpdocs/Includes"); > $title = 'Some Non-Profit'; > @include('header.inc'); [snip!] Have you tried removing error buffering on the include() statement? Just remove the @ and see if there's any errors output on the screen or to the log. -- </Daniel P. Brown> Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo., and shared hosting starting @ $2.50/mo. Just ask!

« previous php.general (#272488) next »