php_value auto_prepend_file

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

php_value auto_prepend_file

Post by tecktalkcm0391 »

I have this in public_html folder's .htaccess

Code: Select all

php_value auto_prepend_file '/home/blueridg/protected_html/header.php'
php_value auto_append_file '/home/blueridg/protected_html/footer.php'
I want to cancel it in the public_html/admin folder, so I put this in the .htaccess:

Code: Select all

php_value auto_prepend_file NULL
php_value auto_append_file NULL
But I get this on every page:

Code: Select all

Warning: Unknown(NULL): failed to open stream: No such file or directory in Unknown on line 0

Warning: Unknown(NULL): failed to open stream: No such file or directory in Unknown on line 0

Warning: (null)(): Failed opening 'NULL' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0
Can anyone help?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Tried an empty string?
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post by tecktalkcm0391 »

No, I did now, and that didn't work, and then i tried looking for an answer again on php.net and I found it...
auto_append_file string ......
The special value none disables auto-appending.
Post Reply