Debugging blank PHP page.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • techjohnny@gmail.com

    Debugging blank PHP page.

    How can I debug a blank PHP page? I've turned on all logging in my
    php.ini, bu the page just turns blank.

    Thanks,

    --TJ

  • Jerry Stuckle

    #2
    Re: Debugging blank PHP page.

    techjohnny@gmai l.com wrote:
    How can I debug a blank PHP page? I've turned on all logging in my
    php.ini, bu the page just turns blank.
    >
    Thanks,
    >
    --TJ
    >
    Do you have display_errors set to on, also? If so, and you have errors,
    you should see them in your browser.

    Did you try looking at the page source to see what you have?

    --
    =============== ===
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    • phpCodeHead

      #3
      Re: Debugging blank PHP page.

      On Jun 10, 11:04 pm, "techjoh...@gma il.com" <techjoh...@gma il.com>
      wrote:
      How can I debug a blank PHP page? I've turned on all logging in my
      php.ini, bu the page just turns blank.
      >
      Thanks,
      >
      --TJ
      does your "blank page" actually generate an error to be reported,
      logged, or displayed?

      code snippet would be nice.

      Gene Kelley
      LAMP Software Developer
      bizFlowDesigns. com

      Comment

      • Tim Roberts

        #4
        Re: Debugging blank PHP page.

        "techjohnny@gma il.com" <techjohnny@gma il.comwrote:
        >
        >How can I debug a blank PHP page? I've turned on all logging in my
        >php.ini, bu the page just turns blank.
        Your question doesn't make sense. Are you saying "my PHP page sends
        nothing to the browser?" Is there anything in the web server error log?
        What happens if you run the script from a command line?
        --
        Tim Roberts, timr@probo.com
        Providenza & Boekelheide, Inc.

        Comment

        • Geoff Berrow

          #5
          Re: Debugging blank PHP page.

          Message-ID: <IOqdnX4qrKs6UP HbnZ2dnUVZ_ufin Z2d@comcast.com from Jerry
          Stuckle contained the following:
          >How can I debug a blank PHP page? I've turned on all logging in my
          >php.ini, bu the page just turns blank.
          >>
          >Thanks,
          >>
          >--TJ
          >>
          >
          >Do you have display_errors set to on, also? If so, and you have errors,
          >you should see them in your browser.
          >
          >Did you try looking at the page source to see what you have?
          Assuming all the above, you are just left with the Mk 1 brain. Look for
          sections where the script outputs code. Add some outputs to ensure the
          script is at least doing something.

          Most of the times when you get absolutely nothing, it's something really
          simple IME.

          --
          Geoff Berrow (put thecat out to email)
          It's only Usenet, no one dies.
          My opinions, not the committee's, mine.
          Simple RFDs http://www.ckdog.co.uk/rfdmaker/

          Comment

          • larry@portcommodore.com

            #6
            Re: Debugging blank PHP page.

            On Jun 10, 9:04 pm, "techjoh...@gma il.com" <techjoh...@gma il.com>
            wrote:
            How can I debug a blank PHP page? I've turned on all logging in my
            php.ini, bu the page just turns blank.
            >
            Thanks,
            >
            --TJ
            Well if it is blank, the first bug is the script is probably working
            but not outputting anything that the browser can display.

            Have you tried to do "View source" to see if there is anything at all?

            Plug in some dummy text to put put, and see if it shows up as
            expected, if not, go earlier into your code and try again. If not,
            maybe you have a error in your web/php installation. Or maybe you
            are calling up the wrong page entirely!

            Comment

            Working...