+ Reply to Thread
Results 1 to 6 of 6

Thread: SHow Php errors apache

  1. #1
    stsights is offline x10 Sophmore stsights is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    159

    Question SHow Php errors apache

    Hi.
    ANy one knows how to show the php errors at lotus because when i have a error in my script does not show the error instead appears in blank my page and to se the error i have to go to cpanel and the section last errors and there see the error, but i want to se it in the page.
    THanks

  2. #2
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: SHow Php errors apache

    error_reporting(E_ALL);
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  3. #3
    stsights is offline x10 Sophmore stsights is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    159

    Re: SHow Php errors apache

    Hi. Thanks for you answer but I put this line to my code error_reporting(E_ALL); but stills not showing my errors.

  4. #4
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: SHow Php errors apache

    It could be possible you don't have anything to display. Would you mind posting or PMing me your code?

    Also, this is probably a better suited question for the programming help forum, if you want to make a new topic there. Otherwise, a mod will probably see it and move it for you
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  5. #5
    stsights is offline x10 Sophmore stsights is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    159

    Re: SHow Php errors apache

    Thank you for your time.
    This is the test code that i put to see the errors.

    <?php
    error_reporting(E_ALL);
    echo "nombre
    ?>
    should displays this :
    [Sun Mar 15 16:01:47 2009] [error] [client 190.57.81.139] PHP Parse error: syntax error, unexpected $end in /home/stsights/public_html/triple/index.php on line 4

    But in the page where is my script appears blank page and the error shows in the cpanel option of the last errors.
    Thanks a lot.

  6. #6
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: SHow Php errors apache

    FYI, if you're getting a blank screen and you have the error reporting directives on, you've already tried things like:

    error_reporting(E_ALL);
    ini_set("display_errors", 1);

    Assuming you have error logging on, it might be that your web server doesn't have write permissions to it's default logging directory (or the logging directory specified in php.ini etc). For me, under IIS, it was simply write permissions not being set for the IIS network_service user account that caused the problem.

    Hope that helps someone.

    Found this info on the php.net page. I'm trying to find something that will work around this.
    Edit:
    Ah, custom error handler:

    http://www.php.net/manual/en/functio...or-handler.php
    Last edited by garrettroyce; 03-15-2009 at 04:12 PM. Reason: Automerged Doublepost
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

+ Reply to Thread

Similar Threads

  1. Show PHP Errors
    By xmakina in forum Free Hosting
    Replies: 1
    Last Post: 02-11-2009, 04:21 PM
  2. Replies: 0
    Last Post: 08-14-2008, 03:29 PM
  3. php errors galore
    By DMG Online in forum Scripts & 3rd Party Apps
    Replies: 9
    Last Post: 05-17-2008, 06:23 AM
  4. Errors Since PHP Changes....
    By Acehole in forum Free Hosting
    Replies: 3
    Last Post: 09-24-2007, 01:07 PM
  5. For you people getting errors with php...
    By Cyvus in forum Free Hosting
    Replies: 0
    Last Post: 09-24-2007, 07:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers