How do I display PHP errors?
Thread Tags
Adobe Illustrator Adobe InDesign Adobe Photoshop Android Development Android Programming Android Studio Automation Testing C / C++ Programming Career Options College Lounge css digital marketing Digital Marketing / SEO Fireworks Graphic Design Graphic designing Graphics Design Graphics Designing HTML? Illustrator Internship Training logo Design logo designing Magento Photoshop PHP Programming QA react-native Scroll Website SEO Single Page Website Stock Managment System Testing Typography UI UI/UX Development UI Design UI Designing UI development User Interface UX Design Web Designing Website Design Wordpress wpRegister for free!
Registration at Smart Mentors is completely free and takes only a few seconds. By registering you’ll gain:
- Full Posting Privileges.
- Access to Private Messaging.
- Optional Email Notification.
- Ability to Fully Participate.
Register Now, or check out the Site Tour and find out everything Smart Mentors has to offer.
Tagged: PHP Programming
This thread contains 2 replies, has 3 voices, and was last updated by Shiv Kumar 1 year, 10 months ago.
- Author Replies
- February 8, 2019 at 2:00 pm #53306
Hello Sonal,
Try adding this script into your syntax:
ini_set(‘display_errors’, 1);
ini_set(‘display_startup_errors’, 1);
error_reporting(E_ALL);However, this doesn’t make PHP to show parse errors – the only way to show those errors is to modify your php.ini with this line:
display_errors = on
Hope it Helps!
- May 23, 2019 at 2:45 pm #57546
In PHP Programming to display errors could be turned off in the php.ini or your Apache config file. You can turn it on in the script: error_reporting(E_ALL); ini_set(‘display_errors’, 1); You should see the same messages in the PHP error log.
- AuthorPosts
You must be logged in to reply to this thread.Please login or register. Registration is 100% free.