Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9152753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:07:55+00:00 2026-06-17T12:07:55+00:00

Possible Duplicate: How to get useful error messages in PHP? Im currently learning php

  • 0

Possible Duplicate:
How to get useful error messages in PHP?

Im currently learning php and at the same time a bit of ruby on rails, one of the thing ive noticed about ruby on rails that i really like is when theres an error on page, it will display you an error page pointing you in the direction of what is wrong.. like the image bellow

ruby on rails error

But when i get an error in php i just get a blank page, which means i have to read through each line of code to try and find what went wrong, as ive just started most of my errors tend to be little syntax problems, which are relatively easy to fix, but relatively hard to find if you’ve missed a ; off the end of a line.

Is there a line that i could put into my <head> during development to show me these errors ? Somthing like <?php show_errors ?>

Or is there an alternative, at the moment im using sublime text 2, Mamp and Firefox to work in. Is there a setting in any of those that i can turn on to allow me to see errors, either code validation in sublime text 2 or a setting in mamp or firefox that will show me an error page instead of a blank one ?

If i was to use a framework do any of them have built in error alerts ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:07:57+00:00Added an answer on June 17, 2026 at 12:07 pm

    To resolve your blank page issue, you’ll have to reconfigure PHP

    display_errors = on
    display_startup_errors = on
    

    It is important to set them outside your script (i.e. not with ini_set()), otherwise parse errors will still result in a blank page. See documentation for details.

    Then, on top of your script, assure that every kind of error gets shown:

    error_reporting(-1)
    

    For nicer error messages you could install XDebug (it is a common extension, not a framework and does not affect your code in any way).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How to get useful error messages in PHP? Simple errors in my
Possible Duplicate: How to get useful error messages in PHP? I have the following
Possible Duplicate: How to get useful error messages in PHP? I'm programming php on
Possible Duplicate: How to get useful error messages in PHP? I can't get this
Possible Duplicate: How to get useful error messages in PHP? Ive started on part
Possible Duplicate: What are C macros useful for? Every few months I get an
Possible Duplicate: Get content between two strings PHP I am trying to create a
Possible Duplicate: Get first day of week in PHP? Given a timestamp I need
Possible Duplicate: Get Client IP using just Javascript? I know PhP can know your
Possible Duplicate: Get first N key pairs from an Ordered Dictionary to another one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.