Tag Archives: php.ini

Why are PHP errors printed twice?

Summary Amazingly I could find nothing about this on Google or SO. When I throw an exception in PHP it appears in my console twice, complete with error message and stack trace. The first time it’s printed it says “PHP… Continue reading
Tagged , , | Leave a comment

Why do I continue to receive PHP Deprecated errors despite this ini setting?

I’ve set my error_reporting to
error_reporting = E_ALL & ~E_DEPRECATED ^ E_STRICT
in php.ini. The numerical value according to phpinfo() is 22527. However we are still logging plenty of
[01-Oct-2011 13:06:36] PHP Deprecated:  Assigning the return value of new
Continue reading
Tagged , , , , | 1 Comment

How to find the php.ini file used by the command line?

I need to enable pdo_mysql in my EasyPhp environment, so I went to php.ini file and uncommented the following line:
extension=php_pdo_mysql.dll
Unfortunately I still have the same problem. I’m using the CLI so I suppose I need to locate… Continue reading
Tagged , , | 7 Comments

How can I make PHP display the error instead of giving me 500 Internal Server Error

This has never happened before. Usually it displays the error, but now it just gives me a 500 internal server error. Of course before, when it displayed the error, it was different servers. Now I’m on a new server (I… Continue reading
Tagged , , | Leave a comment

How to enable PHP short tags ?

I have a web application on a Linux server which starts with <? I needed to copy this application to a windows environment and everything is working fine except that an SQL statement is being rendered differently. I don’t know… Continue reading
Tagged , , , | 2 Comments
1 pages