Find the answer to your Linux question:
Results 1 to 4 of 4
Hi I know it is possible to have apache give output when there is a mistake in a pages php coding, , but I can't find how to turn it ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2005
    Location
    Newark England
    Posts
    2

    [SOLVED] Apache PHP and HTML debug output


    Hi

    I know it is possible to have apache give output when there is a mistake in a pages php coding, , but I can't find how to turn it on. Can anyone advice me on how to do so please.

    Thanks

    Michael

  2. #2
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    i believe you have to turn off safe_mode inside of php.ini for real in depth stuff. otherwise all php errors should be dumped into the error log of apache
    linux user # 503963

  3. #3
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,315
    In php you can also add the following to a script to temporarily display debug info which is not a good idea on a live server.

    Code:
    ini_set('display_errors', '1');
    error_reporting(E_ALL);
    You may also want to take a look at firebug and firephp. Or if your editor can handle it xdebug.


    If you want to look for errors in X-HTML, use firefox and install a validator plug-in
    What do we want?
    Time machines!

    When do we want 'em?
    Doesn't really matter does it!?


    Conkybots: Interactive plugins for your Conkys!

  4. #4
    Just Joined!
    Join Date
    Sep 2005
    Location
    Newark England
    Posts
    2
    Thanks Scathefire & Elija. Problem solved.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •