error not recognize

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nesster13@yahoo.com

    error not recognize

    I have installed Apache and PHP 5 on my machine.
    I have use Smarty and Pear to help me with the general template of my
    page. I was able to have a page loaded onto the my browser with not
    error but when I intentionally create an error on the page a blank page
    load with nothing on it. Does anybody know how to make the error come
    out.

    The code want to use to generate the error

    require_once 'inexistent_fil e.php';

    and since I dont have a file name inexistent_file .php an error should
    be generated.

    Sorry if the question is unclear. I am very new to php/apache and dont
    really know how to put the question in a more formal way. Any help is
    greatly appreciated. Thanks

  • liuch.pku@gmail.com

    #2
    Re: error not recognize

    I think you should change the setting in 'php.ini', find the
    line'display_er rors=off', change it to 'display_errors =On', and make
    sure 'error_reportin g = E_ALL'


    nesster13@yahoo .com wrote:
    I have installed Apache and PHP 5 on my machine.
    I have use Smarty and Pear to help me with the general template of my
    page. I was able to have a page loaded onto the my browser with not
    error but when I intentionally create an error on the page a blank page
    load with nothing on it. Does anybody know how to make the error come
    out.
    >
    The code want to use to generate the error
    >
    require_once 'inexistent_fil e.php';
    >
    and since I dont have a file name inexistent_file .php an error should
    be generated.
    >
    Sorry if the question is unclear. I am very new to php/apache and dont
    really know how to put the question in a more formal way. Any help is
    greatly appreciated. Thanks

    Comment

    • Rik

      #3
      Re: error not recognize

      nesster13@yahoo .com wrote:
      I have installed Apache and PHP 5 on my machine.
      I have use Smarty and Pear to help me with the general template of my
      page. I was able to have a page loaded onto the my browser with not
      error but when I intentionally create an error on the page a blank
      page load with nothing on it. Does anybody know how to make the error
      come out.

      <?php
      ini_set(display _errors,1);
      error_reporting (E_ALL);
      ?>
      The code want to use to generate the error
      >
      require_once 'inexistent_fil e.php';
      >
      and since I dont have a file name inexistent_file .php an error should
      be generated.
      Not just an error, a Fatal error that will halt the script. No further
      processing.

      Grtz,
      --
      Rik Wasmus


      Comment

      Working...