tecno40 Posted November 22, 2010 Share Posted November 22, 2010 Ok so i recently made some changes to my php.ini file, and when i went to check phpinfo.php they were different than what I had set them to in php.ini. I though PHP might be using a different php.ini file so i searched my computer. I did find another php.ini, so I deleted it and restarted iis. When I checked phpinfo.php it was still showing the wrong value. I decided to rename the php.ini file I’m using to “php.ini—“ to see what php would do if it wasn't there. I restarted iis, checked phpinfo.php and php was working fine (still with different information)! The computer search is saying there are no more php.ini files, so I don't know how php is working without a file, does anyone know a solution to this problem? Quote Link to comment https://forums.phpfreaks.com/topic/219482-php-not-reading-phpini/ Share on other sites More sharing options...
PFMaBiSmAd Posted November 22, 2010 Share Posted November 22, 2010 What does the phpinfo() output show for Loaded Configuration File? <-- That's the php.ini that php is using. If it is blank, meaning no php.ini, then php is using the default values for all the settings. If it is the php.ini that you have been changing, have you stopped and started the IIS service to get any changes made to the php.ini to take effect? Also, if the syntax you are using is invalid, the value won't take effect. Quote Link to comment https://forums.phpfreaks.com/topic/219482-php-not-reading-phpini/#findComment-1138001 Share on other sites More sharing options...
tecno40 Posted November 22, 2010 Author Share Posted November 22, 2010 The Loaded Configuration File is (none). I have the php.ini in the main php folder with the iis dll, is that the correct location? Quote Link to comment https://forums.phpfreaks.com/topic/219482-php-not-reading-phpini/#findComment-1138023 Share on other sites More sharing options...
tecno40 Posted November 22, 2010 Author Share Posted November 22, 2010 Ok so i put the php.ini file in c:/windows and that seemed to fix the problem. Mysql is still messed up, but i should be able to fix that. Quote Link to comment https://forums.phpfreaks.com/topic/219482-php-not-reading-phpini/#findComment-1138067 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.