#41420 [NEW]: Blank Page
| From: | jcwebb at dicoe dot com | Date: | Thu, 17 May 2007 18:10:08 +0000 |
| Subject: | #41420 [NEW]: Blank Page | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-112770@lists.php.net to get a copy of this message | ||
From: jcwebb at dicoe dot com
Operating system: Win3K
PHP version: 5.2.2
PHP Bug Type: PHP options/info functions
Bug description: Blank Page
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.
--
Edit bug report at http://bugs.php.net/?id=41420&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41420&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41420&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41420&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41420&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41420&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41420&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41420&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41420&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41420&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41420&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41420&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41420&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41420&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41420&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41420&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41420&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41420&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41420&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41420&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41420&r=mysqlcfg