Re: auto_prepend/append: does the PHP engine cache the
| From: | Rasmus Lerdorf | Date: | Sun, 29 Sep 2002 14:39:45 +0000 |
| Subject: | Re: auto_prepend/append: does the PHP engine cache the | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-88753@lists.php.net to get a copy of this message | ||
> I tried using php_value but it seems that it can only be used (in the
> Apache httpd.conf file) to set *real* php config variables.
Correct. Why don't you write yourself a little trivial PHP extension that
sets stuff in the MINIT hook? With the ext/ext_skel tool it is really
very easy to do if you know just a little bit of C. Then you can have
things other than constants as well. Functions or classes that you use
often can be written directly in C and performance-wise it beats any other
mechanism you can find by a lot.
-Rasmus