Re: global variables w/o access to global php.ini
| From: | CC Zona | Date: | Thu, 28 Feb 2002 01:16:53 +0000 |
| Subject: | Re: global variables w/o access to global php.ini | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86499@lists.php.net to get a copy of this message | ||
In article <Pine.WNT.4.44.0202271857090.3884-100000@associate>,
luomat@peak.org (Timothy J. Luoma) wrote:
> I have a virtual domain under Apache and do not have access to the global
> php.ini file
>
> Apache lets me set site-wide configuration in an /.htaccess file
>
> Is there something similar for PHP?
Forget "similar", you can set PHP config options in the .htaccess file
itself. See <http://php.net/configuration>.
You can also set PHP options on a per-script basis using the ini_set()
function <http://php.net/ini-set>.
--
CC