Link to home
Start Free TrialLog in
Avatar of Thread7
Thread7

asked on

Force a PHP error on server

I am the manager for a PHP project where we have had a soft launch but are still finding errors on the web site.  The PHP programmer has has complete control of the code.  I keep telling him to turn off PHP error reporting in PHP.INI because many times we discover an error it gives the file and line number of the error out to the entire world!

Is there a way I can force a PHP error to occur to see if he really turned it off?  I don't have server access.
Ie. http://mydomain.com?param=#@#@!#
Avatar of Aaron Tomosky
Aaron Tomosky
Flag of United States of America image

There is no way to force an error without seeing the code. It all depends on what inputs are there ad how they are handled
You can add the following function in the .php file for which want to enable the error reporting,
 
error_reporting(E_ALL);
ASKER CERTIFIED SOLUTION
Avatar of xterm
xterm

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you have FTP access youcan just delete a ;
Refresh, then out it right back. But remember that will break it for everyone not just you
Avatar of Thread7
Thread7

ASKER

Thanks.