KeithHunt Posted January 30, 2019 Report 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.
administrator Posted January 30, 2019 Report 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
KeithHunt Posted January 31, 2019 Author Report 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now