PHP5 and some kind of diagnostics

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Harley

    PHP5 and some kind of diagnostics

    Hi,

    I've worked with PHP5 for a good while and yet it has one problem that
    frustrates the hell out of me: when I have syntactic or punctuation errors
    in a script I get nothing except a blank white page in the browser. No
    message, nothing in the server logs--nothing at all. I've been programming
    for 30 years so I know it's not unreasonable to expect some kind of
    indication or message about WHERE the problem is occuring. I have to debug
    like I used to in assembly by commenting out chunks until it runs.

    I run PHP5 as a DSO on Apache 2 with virtual hosts on a Mandrake platform.

    Thanks,

    Harley


  • Tom

    #2
    Re: PHP5 and some kind of diagnostics

    What's your error reporting setting? See:



    and



    Tom


    Harley wrote:[color=blue]
    > Hi,
    >
    > I've worked with PHP5 for a good while and yet it has one problem that
    > frustrates the hell out of me: when I have syntactic or punctuation errors
    > in a script I get nothing except a blank white page in the browser. No
    > message, nothing in the server logs--nothing at all. I've been programming
    > for 30 years so I know it's not unreasonable to expect some kind of
    > indication or message about WHERE the problem is occuring. I have to debug
    > like I used to in assembly by commenting out chunks until it runs.
    >
    > I run PHP5 as a DSO on Apache 2 with virtual hosts on a Mandrake platform.
    >
    > Thanks,
    >
    > Harley[/color]

    Comment

    • Harley

      #3
      Re: PHP5 and some kind of diagnostics

      Thanks, Tom. Checking those settings in php.ini did reveal the problem.

      Curiously, if you set display_errors = On AND log_errors = On, you get
      neither rather than both.

      Harley

      "Tom" <klenwell@gmail .com> wrote in message
      news:1150303995 .781435.255320@ u72g2000cwu.goo glegroups.com.. .[color=blue]
      > What's your error reporting setting? See:
      >
      > http://www.php.net/manual/en/ref.errorfunc.php
      >
      > and
      >
      > http://www.php.net/manual/en/functio...-reporting.php
      >
      > Tom
      >
      >
      > Harley wrote:[color=green]
      >> Hi,
      >>
      >> I've worked with PHP5 for a good while and yet it has one problem that
      >> frustrates the hell out of me: when I have syntactic or punctuation
      >> errors
      >> in a script I get nothing except a blank white page in the browser. No
      >> message, nothing in the server logs--nothing at all. I've been
      >> programming
      >> for 30 years so I know it's not unreasonable to expect some kind of
      >> indication or message about WHERE the problem is occuring. I have to
      >> debug
      >> like I used to in assembly by commenting out chunks until it runs.
      >>
      >> I run PHP5 as a DSO on Apache 2 with virtual hosts on a Mandrake
      >> platform.
      >>
      >> Thanks,
      >>
      >> Harley[/color]
      >[/color]


      Comment

      • Tom

        #4
        Re: PHP5 and some kind of diagnostics

        Also worth noting, the set_error_handl er function is great if you want
        to customize your error reporting. See the comments on the php.net
        for some ideas.

        Tom


        Harley wrote:[color=blue]
        > Thanks, Tom. Checking those settings in php.ini did reveal the problem.
        >
        > Curiously, if you set display_errors = On AND log_errors = On, you get
        > neither rather than both.
        >
        > Harley
        >
        > "Tom" <klenwell@gmail .com> wrote in message
        > news:1150303995 .781435.255320@ u72g2000cwu.goo glegroups.com.. .[color=green]
        > > What's your error reporting setting? See:
        > >
        > > http://www.php.net/manual/en/ref.errorfunc.php
        > >
        > > and
        > >
        > > http://www.php.net/manual/en/functio...-reporting.php
        > >
        > > Tom
        > >
        > >
        > > Harley wrote:[color=darkred]
        > >> Hi,
        > >>
        > >> I've worked with PHP5 for a good while and yet it has one problem that
        > >> frustrates the hell out of me: when I have syntactic or punctuation
        > >> errors
        > >> in a script I get nothing except a blank white page in the browser. No
        > >> message, nothing in the server logs--nothing at all. I've been
        > >> programming
        > >> for 30 years so I know it's not unreasonable to expect some kind of
        > >> indication or message about WHERE the problem is occuring. I have to
        > >> debug
        > >> like I used to in assembly by commenting out chunks until it runs.
        > >>
        > >> I run PHP5 as a DSO on Apache 2 with virtual hosts on a Mandrake
        > >> platform.
        > >>
        > >> Thanks,
        > >>
        > >> Harley[/color]
        > >[/color][/color]

        Comment

        Working...