473,322 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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

Jun 11 '07 #1
5 2839
te********@gmail.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.
js*******@attglobal.net
==================
Jun 11 '07 #2
On Jun 10, 11:04 pm, "techjoh...@gmail.com" <techjoh...@gmail.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

Jun 11 '07 #3
"te********@gmail.com" <te********@gmail.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, ti**@probo.com
Providenza & Boekelheide, Inc.
Jun 11 '07 #4
Message-ID: <IO******************************@comcast.comfro m 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/
Jun 11 '07 #5
On Jun 10, 9:04 pm, "techjoh...@gmail.com" <techjoh...@gmail.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!

Jun 11 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Melissa | last post by:
Does anyone have a generic procedure for adding blank lines to reports like Sales details, PO details and/or Orders details. The procedure would need to count the number of line items, determine...
2
by: Ken Dourado | last post by:
Hi, I have an issue debugging my asp.net project. On a particular aspx page, in the code behind cs file, my breakpoints are not being hit. The breakpoint is in the Page_Load() method and is a...
1
by: Jeffrey Roughgarden | last post by:
I wonder if anyone has any tips to improve Visual Studio's debugging performance? I have a 20 page web app that takes 90 or more seconds to bring up the logon page after I hit F5. Start without...
0
by: thatrickguy | last post by:
Hi everyone. I am developing on a Windows XP sp2 machine with VS.Net 2002 installed. Windows firewall is disabled. I have a Windows 2k Server sp4 with IIS 5 and VS.Net 2002 installed....
5
by: Charles Law | last post by:
I have a VB.NET MDI application that terminates for no reason. Sometimes it will run for ages, and sometimes it terminates after a few seconds. It always seems to occur following some user action,...
7
by: | last post by:
I'm writing an ASP.NET app, using Visual Studio 2003. VS is running locally on my laptop, but the web app is running on a remote server. My laptop is not in the domain. I do have a domain account....
7
markrawlingson
by: markrawlingson | last post by:
Hi guys, I'm an expert in ASP as well as a variety of other technologies, but I'd like to broaden my horizons a little bit. Thus, I'm learning PHP. Since I use ASP I already have IIS 6.0 setup...
0
by: Fresno Bob | last post by:
When I start a website project in Visual Studio Pro 2008 with debugging I get an about:blank page in IE7. I have read people having the same problem in 2005 and applying SP 1 fixed it. Are there...
1
by: johnywhy | last post by:
hello hope someone can figure this out. i'm using pdt with eclipse to debug a php app. I'm able to debug a single script, but how to step through a php app containing many files? The...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.