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 ...
  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
    616
    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
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,301
    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
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  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
  •  
...