PHP and mysql were recently installed on a Linux system using RPMS. phpinfo says the ini file is located in /etc but there is none so it seems to be using default values. The default value apparently has globals turned off. When I put a new ini file in etc it uses it but I lose the mysql functionality. Is there a way to edit the ini file to include mysql or install the rpms with globals turned on without having to compile php mysql from souce? Any help would be appreciated.
Damon Doran
Are you sure that php.ini isn't somewhere else?
Mebbe:
$find / -name php.ini -print
... Just curious, no experience with RPM's myself. 🙂
also, why do you want globals turned on? only poorly coded scripts need it on.
There is no ini file on the server so I think php uses some default values. I can put an ini file but it loses mysql functionality. Have to compile from source?
do you have a php.ini-dist file anywhere?
If you must have register globals on, there are many hacks for this, especially with Apache.
Personally, I prefer hacking the script, but have used this in a virtuser block in httpd.conf:
php_value register_globals ON
Originally posted by Moonglobe do you have a php.ini-dist file anywhere?
There's the $64 ?? 🆒
$64?😕