Thread: Blank page

    #1
  1. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,650
    Rep Power
    171

    Blank page


    Hi why do I get blank for such synthax errors?

    PHP Code:
    error_reporting(E_ALL); ini_set('display_errors''1');


    echo 
    $adults]; 
  2. #2
  3. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,957
    Rep Power
    1046
    Because syntax errors obviously happen before the code is executed. Which means that your error configuration doesn't even run.

    If you want to cover all errors, you must do the configuration in the php.ini rather than at runtime.
    The 6 worst sins of security ē How to (properly) access a MySQL database with PHP

    Why canít I use certain words like "drop" as part of my Security Question answers?
    There are certain words used by hackers to try to gain access to systems and manipulate data; therefore, the following words are restricted: "select," "delete," "update," "insert," "drop" and "null".
  4. #3
  5. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,650
    Rep Power
    171
    Originally Posted by Jacques1
    Because syntax errors obviously happen before the code is executed. Which means that your error configuration doesn't even run.

    If you want to cover all errors, you must do the configuration in the php.ini rather than at runtime.
    Hi Jaques1;

    While I got you here, would you mind writting a comment here please?

    Thank you

IMN logo majestic logo threadwatch logo seochat tools logo