Re: Turning OFF 'auto_prepend_file' on a page by page basis
| From: | Mike Eheler | Date: | Fri, 03 May 2002 23:07:00 +0000 |
| Subject: | Re: Turning OFF 'auto_prepend_file' on a page by page basis | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95989@lists.php.net to get a copy of this message | ||
In .htaccess:
auto_prepend_file "/dev/null"
auto_append_file "/dev/null"
Mike
Stefen Lars wrote:
Usually, I use the Apache directive to add the prepend option. I already tried setting another prepend option in the apache directives, but it seems one does not overwite the other. I tried prepending a blank file. But that did not work. The other prepend file was prepended. When you say use ini_set(), do you mean ini_set("auto_prepend_file", "/a/blank/file.php"); ??From: "Maxim Maletsky \(PHPBeginner.com\)" <subscriptions@phpbeginner.com> To: "'Stefen Lars'" <stefenlars@hotmail.com>, <php-general@lists.php.net> Subject: RE: [PHP] Turning OFF 'auto_prepend_file' on a page by page basis Date: Fri, 3 May 2002 15:53:16 +0200 .htaccess Not sure if ini_set() will work in your case. But try. Sincerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginner.com // where PHP Begins -----Original Message----- From: Stefen Lars [mailto:stefenlars@hotmail.com] Sent: Friday, May 03, 2002 3:02 PM To: php-general@lists.php.net Subject: [PHP] Turning OFF 'auto_prepend_file' on a page by page basis Hello all I am using 'auto_prepend_file' to include a load of files. This is prepended to all PHP parsed files. The prepend files contain the HTML for the framework of my site. How I want to create an XML file for other web sites to use. I do this by getting some data from a database and packaging it as RSS. Correctly, PHP appends my prepend file HTML on top of the XML. I do not want that, as it produced invalid XML. :-(( Is there a way to say, for example: Prepend this file to all files, but NOT this one? i.e. is it possible to 'turn off' the prepend functionality on a page by page basis?? Thanks for your comments S. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php_________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com