No error?

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

    No error?

    Hi, all,

    I installed php on my com yesterday and everything works fine IF there is no
    error in a script. However, if there is one, the server (apache2) simply
    returns a blank page instead of a message regarding any errors. This makes
    debugging like hell... Does anybody know why this is happening? I am using
    XP Pro, Apache2 running on port 1919, IIS running on 80, but all the php
    scripts are run on Apache2.

    cheers

    ==James==


  • Dave Benjamin

    #2
    Re: No error?

    In article <tcD%a.11931$9f 7.1374143@news0 2.tsnz.net>, James Jiao wrote:[color=blue]
    > I installed php on my com yesterday and everything works fine IF there is no
    > error in a script. However, if there is one, the server (apache2) simply
    > returns a blank page instead of a message regarding any errors. This makes
    > debugging like hell... Does anybody know why this is happening? I am using
    > XP Pro, Apache2 running on port 1919, IIS running on 80, but all the php
    > scripts are run on Apache2.[/color]

    Check your error_reporting setting in php.ini.

    Mine looks like:
    error_reporting = E_ALL & ~E_NOTICE

    HTH,
    Dave

    Comment

    • Peter James

      #3
      Re: No error?

      Check your display_errors directive in php.ini. It should be on.

      --
      Peter James
      Editor-in-Chief, php|architect Magazine
      petej@phparch.c om

      php|architect
      The Magazine for PHP Professionals
      The site for PHP professionals, Magazine, Training, Books, Conferences



      "Dave Benjamin" <ramen@lackingt alent.com> wrote in message
      news:slrnbju1ia .dfb.ramen@lack ingtalent.com.. .[color=blue]
      > In article <tcD%a.11931$9f 7.1374143@news0 2.tsnz.net>, James Jiao wrote:[color=green]
      > > I installed php on my com yesterday and everything works fine IF there[/color][/color]
      is no[color=blue][color=green]
      > > error in a script. However, if there is one, the server (apache2) simply
      > > returns a blank page instead of a message regarding any errors. This[/color][/color]
      makes[color=blue][color=green]
      > > debugging like hell... Does anybody know why this is happening? I am[/color][/color]
      using[color=blue][color=green]
      > > XP Pro, Apache2 running on port 1919, IIS running on 80, but all the php
      > > scripts are run on Apache2.[/color]
      >
      > Check your error_reporting setting in php.ini.
      >
      > Mine looks like:
      > error_reporting = E_ALL & ~E_NOTICE
      >
      > HTH,
      > Dave[/color]

      Comment

      • James Jiao

        #4
        Re: No error?

        Hi

        Well, I had both turned on.. but then I reinstalled php... and it's working
        now... have no idea what went wrong...


        But thanks for your help!!!

        ==James==

        "Peter James" <petej@shaman.c a> wrote in message
        news:vju1nc4d0d tga4@corp.super news.com...[color=blue]
        > Check your display_errors directive in php.ini. It should be on.
        >
        > --
        > Peter James
        > Editor-in-Chief, php|architect Magazine
        > petej@phparch.c om
        >
        > php|architect
        > The Magazine for PHP Professionals
        > http://www.phparch.com
        >
        >
        > "Dave Benjamin" <ramen@lackingt alent.com> wrote in message
        > news:slrnbju1ia .dfb.ramen@lack ingtalent.com.. .[color=green]
        > > In article <tcD%a.11931$9f 7.1374143@news0 2.tsnz.net>, James Jiao wrote:[color=darkred]
        > > > I installed php on my com yesterday and everything works fine IF there[/color][/color]
        > is no[color=green][color=darkred]
        > > > error in a script. However, if there is one, the server (apache2)[/color][/color][/color]
        simply[color=blue][color=green][color=darkred]
        > > > returns a blank page instead of a message regarding any errors. This[/color][/color]
        > makes[color=green][color=darkred]
        > > > debugging like hell... Does anybody know why this is happening? I am[/color][/color]
        > using[color=green][color=darkred]
        > > > XP Pro, Apache2 running on port 1919, IIS running on 80, but all the[/color][/color][/color]
        php[color=blue][color=green][color=darkred]
        > > > scripts are run on Apache2.[/color]
        > >
        > > Check your error_reporting setting in php.ini.
        > >
        > > Mine looks like:
        > > error_reporting = E_ALL & ~E_NOTICE
        > >
        > > HTH,
        > > Dave[/color]
        >[/color]


        Comment

        Working...