Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.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.




View Complete Forum Thread with Replies

Related Forum Messages:
Login Page Produces Blank Page
What I get when I enter username/password and hit submit is a blank page and the URL never changes. In other words, the login page is 'index.php' and when submitted it should redirect to 'admin.php'. Instead the url/address stays at 'index.php' and the page turns completely blank.

In the previous thread, the problem turned out to be some missing indicator to the md5 encrypted password. Well, in this version, that's there! In fact, I used the ending scripts for that project in creating this project. So, why it won't work is a real mystery. Code:

View Replies !
OOP Page = Blank
OOP – page does not display

I need your keen eyes to figure out what is happening here

I have an OOP script that works well on two local test servers
One runs a slightly older PHP, the other one the last PHP just before release of PHP5, in both cases it runs with Reg Glob off, as it should
How is it built:

One) A class that reads a template, sets values, and sends info to a browser.
That class I have used many times and I know it does not cause any trouble

Two) a templates
Using the following
<!--{PROD_1}--> no problems here!

Three) the main page
<<
require_once ("../DB conn etc..."); // Include the configuration file.
require_once ("../classes/the class I mentioned in “One”.class"); // Include the class.
$id=1;
$page = again the “One” class ("../templates/main_template_products.inc.php"); // Create an instance.
$content_1 .= ''
include "../includes/prod_1.inc.php";
$page->SetParameter("PROD_1", $content_1);

and my include file
<?
$conn = db_connect();

$sql= "select prod_1 from XXXXX where id=$id";
$result = mysql_query($sql,$conn);

while ($new_content=mysql_fetch_array($result) ){
$content_1.= $new_content[prod_1];
}
?>

I am pretty sure that the scripts has no fault. It works on another production server.

So what can go wrong. Up to the point of getting a full blank page that in “view source” shows 100% of nothing! I know the DB conn fine since I can edit it via my CMS using the same db conn function.

Will that be a server setting? It runs with reg glob on and safe mode on.

View Replies !
PHP Blank Page.
I posted earlier about this, a blank php page. I've enabled logging
ALL in the php.ini, but nothing. If I change the name of the db in
the include file, I get an error message, so I guess this means it's
connecting to the mysql db. I've included the first couple lines of
code for this page:

index.php
<?php
session_start();
require_once('inc/db_config.inc.php');
$conn = db_connect();
$sqlsu = "SELECT * FROM subjects ORDER BY ID";
$ressu = mysql_query($sqlsu, $conn);
if (mysql_num_rows($ressu)) {
while ($qry = mysql_fetch_array($ressu)) {
$cat = stripSlashes($qry['cat']);
$resns = mysql_query("SELECT * FROM questions WHERE test LIKE '$cat'",
$conn);
$numcat = mysql_num_rows($resns);

inc/db_config.inc.php

function db_connect()
{
$result = @mysql_pconnect('localhost', 'root', 'password);
if (!$result)
return false;
if (!@mysql_select_db('quiz'))
return false;

return $result;
}
?>

View Replies !
Getting A Blank Page?
When I try to run a PHP script of mine, I get a totally blank page. I've tried to put HTML at the very beginning of it, but even that does not show up. I don't see anything wrong with it either. Basically there are two header requires, and then some code that reads a database, and then a few more requires.

View Replies !
Blank Page?
I hve index.php setting two session variables when you login. But when i put session_start(); on any other page to get the variables, it leaves me with a blank page. What could be causing this?

View Replies !
Blank Page
I want it to show on a blank page the first 10 rows of the table. What should i add/delete?

<?php
$host="localhost"; // Host name
$username=""; // Mysql username
$password=""; // Mysql password
$db_name="test"; // Database name
$tbl_name="test_url"; // Table name

// Connect to server and select databse.
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");

$sql="SELECT * FROM table LIMIT 10";
$result=mysql_query($sql);

mysql_close();

?>

View Replies !
PDF IE Is A Blank Page
I'm working with FPDF 1.51.

The ouptput of my php script (a pdf file) in IE is a blank page and click on with right on 'view html', IE tells me: 'the XML source code is not available', but the same script on Mozila and Opera it's OK, open Adobe inside the window...

my code:
...
Header('Content-Type: application/pdf');
Header('Content-Length: '.strlen($this->buffer));
Header('Content-disposition: filename; filename=doc.pdf');
...

how can i resolve this problem?

i think there's a bug in IE (v.6 on XP professional - with IIS/Apache)

View Replies !
Php Blank Page
I am have my website hosted on www.dot5hosting.com. They say they support php version PHP 4.4.1, i don't have access to the php.ini file. i was trying to  create a php page for my website,  but even  a simple php script  displays a blank page.

<HTML>
<HEAD>
<TITLE> Simple PHP Example </TITLE>
</HEAD>
<BODY>
<P><?php echo("This is a test!"); ?></P>
</BODY>
</HTML>

The page source displays the same code as above. I tried saving the file with extensions .php , .php3 as well but none of them works. What should i do.

View Replies !
Blank PHP Page
I just installed the blogging tool wordpress on by copying the directory into my Redhat 9 www folder. I've set the correct database name, username and password but all that
I have from index.php is a blank page.

View Replies !
Blank PHP Page - Php.ini
I have a site that relies upon php, and that works fine, error reporting is on inside of php.ini, and I'm stumped. Here's my code:

<?php
$conn = @mysql_connect("localhost","nick","568610")
or die ("Sorry, could not connect to MySQL");

$rs1 = @mysql_create_db($_REQUEST['db']);

$rs2 = @mysql_list_dbs($conn);
for($row =0; $row < mysql_num_rows(rs2); $row++)

{ $list .= mysql_tablename($rs2, $row) . " ¦ "; }
?>
....

View Replies !
Blank Page / Timeout
My website consumes an XML web service using SOAP to handle the requests and responses. If the response is larger than a certain size, i get nothing back and my browser shows a blank page with nothing in the source code. I do get a result if the response is smaller so the request code seems to be working.

My php.ini files includes:

max_execution_time = 300
max_input_time = 300
memory_limit = 128M

Error Reporting is E_ALL - i dont even get any error messages when it does fall over.

Are there any other settings that i should try to let the server handle a larger response?

View Replies !
Blank Page When There Is An Error
my server is somehow configured to not show any errors what so ever. I have
tried the following 2 lines to no avail in my test script:

error_reporting(E_ALL);
ini_set ('error_reporting', E_ALL);

all I get is a blank page when there is an error.

View Replies !
Blank Page Issue
In my website i am facing a issue now . all my forum php pages its showing blank page but other php files its running fine and i am using vb bullitn . do any one have idea why its coming.

View Replies !
Blank Page Is Coming..
I have a problem installing php5 in windows xp. I am getting a blank
page while i process the file.
if i type localhost the iis page is loading. i created a virtual
directory 'php' if i type http://localhost/php means it is showing all
the files in the directory but if i click the file a blank page is
coming.

can anybody give me a solution to resolve this.

View Replies !
PHP Page Is Blank For Newbie
phpinfo.php works just fine . php intro pages work just fine too
When the code below is posted the page appears blank does some one
have any ideas why a page will appear blank.

View Replies !
Blank Page On PC Or Mac, IE Or Firefox
I tested this php form, and it worked on 2 out of three computers, all of which were on different networks. The one that didn't work stalled after I hit submit . . . all I got was a blank page . . .  no error messages or anything. This happened whether it was on a PC or Mac, in Firefox, or IE. Any ideas what could be causing it?

Code: ....

View Replies !
Displaying Just A Blank Page??
I have commented out a lot of my code and have realised that the code below is what the problem is. I have placed ini_set('display_errors', 'on');
error_reporting(E_ALL);  at the very top of the page. No errors are displaying. However I can't see what the problem could be. Code:

View Replies !
Blank Page With [object] On It
I'm using a popup window to INSERT data into a dbase. I pass two variables to the popup, the problem the I'm having is the when I pass the two variable the opener turns blank with an [object] on it with one of the variables on the address bar and the popup with the other. What I want is the the opener not to go blank and the two variable pass to the popup. The code work perfect in macs safari but not in microsoft explorer. Here's the code:

View Replies !
When Using SESSION, It Gives BLANK Page
I installed PHP 5.2, MySQL (latest version) and Apache 2 on Win XP. it works OK except SESSIONS when I have a file beginning like this, it gives a blank page:

session_start();
if (isset ($_SESSION['loggedin']) && isset ($_SESSION['time']))
{

I think it must be about php installation.and yes it works on other servers, but on my pc, it gives a blank page. Code:

View Replies !
Page Is Blank And No Error ...
When i have a syntax error in my code. The web page is blank and no error is displayed. Has anyone idea what is the problem ?

View Replies !
Blank Page Problem
In my site i am loading all inner pages in index page it self, i am storing inner pages as separte file and loading that files in index using include().

Site givs exact result. But the problem is when i am loading the site some time it show blank page and after clicking refresh button its get loaded. Many time this problem repeating.

View Replies !
Blank Page Showing
with this script: PHP Code:

<?
$username = $_SESSION['username'];


if (isset($_GET["form"]) && $_GET['form'] == "password") {
    $e = "none";
    $p1 = $_POST['pass1'];
    $p2 = $_POST['pass2'];
    }
    //validate password
    if (!username_field($p1) or $p1 == "") {
        $e = "password";
    }
    //make sure the same
    if ($p1 != $p2) {
        $e = "match";
    }.....

View Replies !
If Else - Always Returns Blank Page
<?php
if ($hi) {
echo "$hi";
}
?>

i go: http://site.com/test.php?hi=anything

no matter what i put there, it always returns blank page. whats the problem here? how can i get the value of $hi that the user submits at: http://site.com/test.php?hi=anything

View Replies !
Blank Page On Apache
I have PHP 5.21 and Apache 2.2 installed on my server machine. When I connect to localhost to test the server, the default .html file apache uses comes up ok, meaning I can connect to the server. The problem I'm having is that when I go to localhost/test.php nothing comes up.

View Replies !
Header Redirects Me To A Blank Page
Ive a problem with the command.

header("Location : index.php3") , it works on PWS , but on Apache it redirects me to a blank page (and no errors ).

View Replies !
Search Problem, Blank Page
I have a simple search on my site. It searches through by database of products by keyword. I'm sure my coding is wrong. When I submit, I recieve a blank page. I'm using MySQL, Apache server and PHP4. Any help would be great. I've tried changing some code, but still get the same results. Code:

View Replies !
Using CURL Gave Blank Page
I need to use CURL to fetch a link and get its results. I have the wamps 5 1.7.2 (windows, apache, mysql, php) pre packages installed. Activate the php extention php_curl and running it gave me nothing back (just a blank page)

<?php

// create a new curl resource
$ch = curl_init();

// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://www.google.com/");

// grab URL and pass it to the browser
curl_exec($ch);

// close curl resource, and free up system resources
curl_close($ch);?>

while dumping it into my personal web host account it works. So I assume, i have left something off the php installation.

View Replies !
Code Makes A Blank Page?
I upgrade from PHP4 to PHP5.4.2 and now this code doesn't work.  I moved the header command up to the top (you can see where I commented it out lower in the code) and now all that show is the header.  If I have the header in the original position the page is blank. Code:

View Replies !
Redirect Code Gives Blank Page
I have a simple piece of code designed to register a bookmark in an arrray during a customer site visit. The page should update the arrray and redirect but I get only a blank page. I dont get error messages and this basic code works in a similar application. Code:

View Replies !
Fopen() Returning Blank Page
I need to use fopen to open a url on a different server, but when I do it only returns a blank page. No error messages and no url.

fopen is turned on in php.ini.

View Replies !
Generate A PDF And IE Displays A Blank Page. What Happens?
I have two server one is local and the one is the live server? for the pdf in local it display in IE and give me a good results, but when i test it online (live) the IE gave me blank?

Is this something on limit time?

View Replies !
Page Blank But No Errors Displayed
I have a script that's just returning a blank page. So I'm guessing I've got an error somewhere.

In fact I know I have because if I comment out one or two classes, I get an error message coming up. But why do I get a blank page at first? How come it's not giving me an error message for my obviously faulty class? Code:

View Replies !
Db Call Is Causing Page To Be Blank
I've got a page that pulls the data from the config table, and allows you to edit it inside a form. It uses the following db call: Code:

View Replies !
Phpinfo() Returns Blank Page
I am having a strange problem. I have installed Win2K3, PHP 5.2.3, IIS6 and for some reason whenever I try to go to phpinfo.php I get a blank page. The strange things is that it worked before (like a week back) and nothing has changed on the server.

I have a website that uses PHP on the machine and it seems to work, so I am not sure what is going on?

View Replies !
Script Generates Blank Page
Someone using the nifty testimonial script I created has come to me with a problem. When he tries to log into the admin area, he gets a completely blank page(no source, no nothing). I had him turn on error reporting(all) on at the top of the page, and he still gets nothing. I had him create a page for phpinfo, and it shows as a completely blank page as well.

View Replies !
> SQL Query Brings Up Blank Page
Im trying to write an SQL query that takes info from two tables and matches them by ID.
However when I use the code it takes out my whole page - nothing shows - not even the html on the page. PHP Code:

View Replies !
Installing Fails No Errors But A Blank Page
I installed apache and it works across my LAN just fine. When I install
php though, nothing happens even with very simple commands. I even
turned on the error checking in the php.ini file and still the web page
is blank where the php stuff should be.

View Replies !
No Errors, Just Blank Page - Error_reporting(E_ALL)
Hey people. I have a strange problem. I never get any errors, just blank pages. Even if I insert error_reporting(E_ALL); . Is there an INI setting that I am missing?

View Replies !
Display A Blank Page When Form Submit?
I keep getting a blank page when i submit my registration form, because there's no errors being display.

View Replies !
Tikiwiki: Tiki-install.ph Blank Page
Just in case anyone searchs on this topic. I kept
getting a blank page running a fresh install of
tikiwiki 1.9.x tiki-install.ph. Downgrading to 1.8.x
gave me a mysql_connect() error which tipped
me off to the problem. I was running a fresh load
of FC 4 which had a php, php_pear and mysql but
not a php_mysql connector. Doing a rpm query
should show at least:

# rpm -qa | grep php
php-mysql-5.0.4-10.5 <== this was missing
php-5.0.4-10.5
php-pear-5.0.4-10.5

Solution was to do a "yum install php-mysql".

It'd be nice if tiki-install.ph did some sort of test
that 1.8.x appears to have been doing.

View Replies !
Ie6 And Lower Loads Blank Page After Login
I've got a script the logs the user, then redirects them a different page. Everything works fine in Firefox and ie7. But anything ie6 or lower, after they click login, it just loads a blank page. Upon refreshing, it loads the page just like its supposed to. I read a little bit about problems with sessions and ie6, but didn't find any real solutions. I know ie is worthless, but is there any real fix for this? Code:

View Replies !
Blank Page Caused By Undefined Index
I upgraded my php from 4.4.7 to 5.2.4 and now the entire website doesn't work.  So I am trying to learn PHP and go through the site one error at a time.  If you have a idea why the upgrade caused the site to fail that would be great.

But in the meantime this is the problem i am stuck on.

I get this error now when transferring to a page

Notice - PHP Notice: Undefined index: REMOTE_ADDR in c:locationSession.php on line 45.

That line has the following code.

$GLOBALS["$SessionName"]=md5 (microtime() . $GLOBALS[REMOTE_ADDR"]);

Like I said this code worked before the upgrade.  Any idea what I can do to fix this problem?

View Replies !
What's Wrong With This Fopen Command? Just Blank Page
<?php
fopen("drive:filefilePhoneList.mht", "r");
?>

gone onto php.net and looked up a load of others that do the same thing? some of them anyway

fgetss() fread(), fgetc(), stream_get_line(), fopen(), popen(), fsockopen(), and stream_set_timeout(), file(), fgets() , fread(), readfile(), file_put_contents(), stream_get_contents()

View Replies !
Whenever There Is An Error With My Script It Just Shows A Blank Page?
Whenever there is an error with my script it just shows a blank page. I checked the

php.ini and it has:
error_reporting = E_ALL
And if I put
error_reporting(E_ALL);

in my script it still doesn't work... so what is the problem?

View Replies !
Database Connection - Blank Page, No Errors.
I have set up a database connect which looks like this: PHP Code:

$ControlPanel = mysql_pconnect($hostname_ControlPanel, $username_ControlPanel, $password_ControlPanel) or trigger_error(mysql_error(),E_USER_ERROR);

I am using pconnect because I am accessing that database from many different locations. When I run this script I get a blank page, no errors. If I take out that script I can run other php functions without problem. Also phpinfo() works fine aswell. I will send you the link if you want to see my php.ini file.

View Replies !
File Upload Giving Blank Page
I am trying to code a page wher users can upload images using the code below, but I keep getting blank page, what could be the problem. Code:

View Replies !
Parser Errors Not Displaying - Get A Blank Page
I have PHP 5.0.3 with apache 1.3.33 installed on Windows XP. For some reason I am not getting any errors displayed if I have a syntax error in my code. eg:

<?php

phpinfo_xx();

?>

The above displays a blank page. In my php.ini I have

error_reporting = E_ALL & E_STRICT
display_errors = On

I've confirmed that the correct php.ini is being used - adding an extension and checking phpinfo(). After changing my php.ini I restart apache each time to test.

View Replies !
Long Code, Blank Page Response
I've written some code here that doesn't seem to work... It's supposed to send an email near the end, it doesn't send it and it just gives my a blank page, as a response. Code:

View Replies !
Form Validation, Blank Page On Submit
Also i am going to be adding the rest of the regex to my other vars, Code:

View Replies !
Image Upload - Script Is Displaying A Blank Page
I am submitting a form with one image upload option. Now problem is that if a user submit form without choosing any image my script is displaying a blank page and not insert data in db. But when i select image with submition of formit is working fine. I think problem is i have to check whether file is selected or not. I am using like this

if(isset($_POST['submit']))
{
if(isset($_POST['userfile']))
{
echo "image selected";

if (isset($_FILES['userfile']))
{
//code to uplaod image
}
}
else
..................

View Replies !
Preventing The Page From Automatically Using These Blank Values Upon Loading?
I am trying to create a login system. The values in the password and username textboxes are checked against my database and if they are in there access is granted.

However, when the page loads the condition is automatically checked with blank values and so access is denied. Is there a way of preventing the page from automatically using these blank values upon loading?? Code:

View Replies !
Using Echo For A Table Produces Blank Page, Not Even Errors!!!?
I have a hyperlink which goes to the page below and passes the PK_ID from a query into 'userid'. From this we query the DB and then echo a table with a form; only the textboxes are already populated with the data from the query (in theory)!

But I get a blank page! I have error reporting on php and mysql but nothing is displayed? Code:

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved