php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #24260 Allow auto_append_file using ini_set at PHP_INI_USER level (in user script)
Submitted: 2003-06-19 12:28 UTC Modified: 2003-06-19 12:54 UTC
Votes:3
Avg. Score:4.7 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:3 (100.0%)
From: webmaster at geog dot cam dot ac dot uk Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 4.3.2 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: webmaster at geog dot cam dot ac dot uk
New email:
PHP Version: OS:

 

 [2003-06-19 12:28 UTC] 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.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-19 12:54 UTC] derick@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 10:01:29 2024 UTC