php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41420 Blank Page
Submitted: 2007-05-17 18:10 UTC Modified: 2007-05-17 18:51 UTC
From: jcwebb at dicoe dot com Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 5.2.2 OS: Win3K
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jcwebb at dicoe dot com
New email:
PHP Version: OS:

 

 [2007-05-17 18:10 UTC] jcwebb at dicoe dot com
Description:
------------
When i call my page 'index.php' i just get a blank page. View Source reveals "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>"

- i now what the problem is... there is an error in my code. 
- I have php.ini set with 
error_reporting  =  E_ALL|E_STRICT
and
display_errors = Off

OOPS - my bad - but i found many google's with the same problem - maybe this can be posted somewhere as the answer!

Reproduce code:
---------------
<?php require_once('../connection.php'); ?>
<?php // this page
$action='new'; $title='Nombre por un CDR upload';
if ( (isset($_POST['Bins'])) OR (isset($_POST['Bmod'])) ):
	$title=fn_form($_POST['title'],'text');
	if ( ($title<>'') AND (substr($title,0,10)<>'Nombre por') ):
		if (isset($_POST['Bins']))
			$q="INSERT INTO rrdefinitions SET title='$title' ";
		endif;
		if (isset($_POST['Bmod'])):
			$iddef=$_POST['iddef'];
			$q="UPDATE rrdefinitions SET title='$title' ";
		endif;
		$r=mysqli_query($DBlink,$q) or die(mysqli_error($DBlink)." Q=".$q);
	endif;
	$action='mod';
endif;
// now draw the page... html... headers... echo's... buttons... etc
?>

Expected result:
----------------
To see the page with info from db, and buttons to Add, Edit, Delete records, etc.

Actual result:
--------------
blank page with no php stuff.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-17 18:16 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 [2007-05-17 18:47 UTC] jcwebb at dicoe dot com
Blank Page can be caused by...
error_reporting  =  E_ALL|E_STRICT
and
display_errors = Off

So, set both options !!

(sorry about wrong place to report)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 08:01:28 2024 UTC