ID: 24260 Updated by: [EMAIL PROTECTED] Reported By: webmaster at geog dot cam dot ac dot uk -Status: Open +Status: Wont fix Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.3.2 New Comment:
No, this is not techinically possible. The auto prepend, the normal script, and auto append files are run at the same time with the api call (zend_execute_scripts), and thus it's impossible to change that within the script itself. Previous Comments: ------------------------------------------------------------------------ [2003-06-19 12:28:31] webmaster at geog dot cam dot ac dot uk Description: ------------ Feature request: would it be possible to enable auto_append_file to be set at PHP_INI_USER level? At present this can only be done in the server config (inc. .htaccess per-directory) but it would be useful to be able to set this earlier in a script. Clearly auto_prepend_file can't be set in the script for obvious reasons, but I'm not sure why this limitation should exist for appending code to the end of the file. This would enable surrounding a page with a house style simply by including/prepending /path/to/filename.html where filename.html contains the start of the house style and the instruction: <?php ini_set 'auto_append_file', '/path/to/appended.html'); ?> I'm not clear whether Bug #18283 is addressing the same issue. Either way, I think the above would be a valuable addition to what I find to be PHP's greatest feature. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24260&edit=1
