unable to change configuration of php.ini. can anyone help?

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
baked_bean
Forum Newbie
Posts: 3
Joined: Fri Sep 18, 2009 12:36 pm

unable to change configuration of php.ini. can anyone help?

Post by baked_bean »

hello everyone.

i would very much appreciate some help from all you php gurus out there.

i am trying to configure my php.ini file to modify the way in which my scripts show errors. when i change the display error values from on to off in my php.ini file and turn the server off and on etc display errors is still set to on as shown when i call phpinfo(). furthermore i have tried to set the php.ini file using ini_set() but it refuses to change the value. i've made sure i'm modifying the correct php.ini file using phpinfo().

even when i turn display errors off in mamp the errors still display!

has anybody encountered this problem and would anyone have any suggestions as to why i cannot change the values within my php.ini file?

thanks

baked_bean.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: unable to change configuration of php.ini. can anyone help?

Post by VladSun »

Did you restart Apache?
There are 10 types of people in this world, those who understand binary and those who don't
baked_bean
Forum Newbie
Posts: 3
Joined: Fri Sep 18, 2009 12:36 pm

Re: unable to change configuration of php.ini. can anyone help?

Post by baked_bean »

yes i always restart apache after making any of the changes.
Mark Baker
Forum Regular
Posts: 710
Joined: Thu Oct 30, 2008 6:24 pm

Re: unable to change configuration of php.ini. can anyone help?

Post by Mark Baker »

Are you sure you've changed the right php.ini file. Sometimes you find there's several scattered around in different directories.
A quick phpinfo() will tell you the location of the ini file that php is actually using.
baked_bean
Forum Newbie
Posts: 3
Joined: Fri Sep 18, 2009 12:36 pm

Re: unable to change configuration of php.ini. can anyone help?

Post by baked_bean »

yes i've checked on phpinfo() to make sure i am modifying the right php.ini file and it would certainly appear that i am.

very frustrating!!
Post Reply