Where does phpinfo() get its info?
问题 If you run a phpinfo(); does it show exactly what is in the php.ini or if settings are changed on the fly via php with methods like ini_set() or via .htaccess will they be shown in phpinfo? 回答1: phpinfo() shows, in the " Local Value " column, the current configuration ; i.e. what is in php.ini eventually, overriden in Apache's VirtualHost or in .htaccess files eventually, overriden by ini_set In the end, it shows the configuration values that would be / are used by your script. As a sidenote