KeithHunt Posted January 30, 2019 Report Share Posted January 30, 2019 Verified the version of PHP that I am using in MAMP, which is 7.2.10. Chose the corresponding php.ini doc. Searched for display_errors and found that it was off. changed to on. Saved doc. turned off Apache server. Closed MAMP. Restarted MAMP and server. Reloaded the php doc for this lesson ch4-lesson-1.php. Still not showing the errors?!. What am I doing wrong? Found a work around on Stackify by pasting in the following code into the PHP doc: ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); This works, but only on a doc by doc basis. Quote Link to comment Share on other sites More sharing options...
administrator Posted January 30, 2019 Report Share Posted January 30, 2019 Hmmm ... Sounds like a MAMP specific setting issue. Worst case, you can put that code into a separate file, and use PHP includes to include it. 1 Quote Link to comment Share on other sites More sharing options...
KeithHunt Posted January 31, 2019 Author Report Share Posted January 31, 2019 (edited) Do you think it would help to uninstall, then reinstall MAMP? Should I maybe switch to using WAMP, or one of the other servers? Are any of them beginner friendly? (Yeah...guess, using PHP includes would be good practice. LOL.) Edited January 31, 2019 by KeithHunt Quote Link to comment 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.
Note: Your post will require moderator approval before it will be visible.