Question About PHP Includes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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');

$rawevents= implode("\n",
file('//some/absolute/path/to/httpdocs/Includes/home_include-events'));
$events = stripmtpara($rawevents);
?>

<!-- ********* MAIN CONTENT SECTION ********** -->

<?php 
	@include('homeheader.inc'); 
?>

This code has worked forever so I'm not sure what's up. Based on my
debugging I've found that:

1. The lines starting with $rawevents and $events, when commented out, allow
the page to be rendered, but without the header information.

2. If I change the absolute paths in the ini_set statements to be relative
paths I get my header information.

I'm stumped...any ideas? I'm running PHP 5.2.5.

Thanks!

Jon
-- 
View this message in context: http://www.nabble.com/Question-About-PHP-Includes-tp16467560p16467560.html
Sent from the PHP - General mailing list archive at Nabble.com.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux