How to configure php.ini in .htaccess?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
myleow
Forum Contributor
Posts: 194
Joined: Mon Jun 21, 2004 7:05 pm
Location: California

How to configure php.ini in .htaccess?

Post by myleow »

I require to turn ON register_global in a directory while maintaining the global php.ini to have register_global off.

Can someone please write the way to do it in .htaccess? I am a newbie when it comes to system admin.

Thank you in advance.

Regards
Mian
User avatar
andre_c
Forum Contributor
Posts: 412
Joined: Sun Feb 29, 2004 6:49 pm
Location: Salt Lake City, Utah

Post by andre_c »

Code: Select all

php_value register_globals 1
although i recommend fixing the code so it works without turning register_globals on
Post Reply