Jump to content

[SOLVED] Blank pages


cry of war

Recommended Posts

I have been getting nothing but blank pages for a while now and its not showing me the errors on the page

so I was wonding if the blank page its self means something or there is an error i should be looking for.

 

I am using this to show me the errors on the php page

<?php
ini_set('display_errors', '15');
error_reporting(E_ALL);
?>

Link to comment
https://forums.phpfreaks.com/topic/64266-solved-blank-pages/
Share on other sites

display_errors only takes a boolean value, eg 1 and 0 or On and Off or true and false.

 

ini_set('display_errors', 'On')

 

if you still dont get any errors. Then check your servers error logs. All errors should be written to your servers error logs by default.

Link to comment
https://forums.phpfreaks.com/topic/64266-solved-blank-pages/#findComment-320378
Share on other sites

There are a number of things that could cause that. Make a proof file that just has something like:

<?php
   echo "Why doesn't my code work?!
?>

 

Notice the lack of a quotation mark at the end (as well as a semicolon, but I don't think that would error with one line). If this outputs a white page then the problem is probably in the error outputting.

Link to comment
https://forums.phpfreaks.com/topic/64266-solved-blank-pages/#findComment-320379
Share on other sites

ok i made an error down the page so it would trick the page into making the error report and it came up with this

Parse error: syntax error, unexpected T_VARIABLE in C:\apache2triad\htdocs\trys1.php on line 305

304---- $skillstr1 = "1,0,1,1,0,1,0,1,0,1,1,1,0,0,1,0,0,1,0,0,1,0,0,1,1,0,1,0,0,1,0,0,1,0,0,1,0,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,0,1,0,0,1,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,1,1,0,1,1,0,0,1,1,1,1,1,0,1,0,1,0,0,0,1,0,1,0,1,0,1,0,1,0,0,1,1,1,1,1,1,1,0,1,0,1,1,0,0,1,1,0,0,0,1,0,0,0,1,1,1,0,0,1,1,1,0,1,1,1,0,1,1,1,0,0,0,1,1,1,1,0,0,0,1,1,0,1,0,1,1,0,1,1,1,0,0,1,1,1,0,1,1,1,0,0,1,1,0,0,1,1,0,0,1,"
305---- $skillyon = explode(',',$skillstr1);

Link to comment
https://forums.phpfreaks.com/topic/64266-solved-blank-pages/#findComment-320430
Share on other sites

  • 8 months later...

hiya anyone

 

I have read through a couple of the threads with people having the same problems as me with php code, I have tried all of the solutions but there are still problems with it, can anyone see what i'm doing wrong?

 

:::::::::::::::PROBLEM::::::::::::::::::::::

The problem is with the 'if statement'  its saying Parse Error: Syntax Error BOOLEAN_OR (something like that)

 

 

:::::::::::::::::CODE::::::::::::::::::::::::

 

<?php
include("connect.php");
if(isset($_POST["posted"]))
{
$name = $_POST["name"];
$message = $_POST["message"];
$time = time();
$ip = $_SERVER["REMOTE_ADDR"];
$check_name_length = strlen($name); 
$check_message_length = strlen($message); 
if($check_name_length >= 30); || if($check_message_length >= 250);
{ 
echo "Please fill in the textboxes properly."; 
} 
else { 
mysql_query("INSERT INTO comment( id, ip, name, time, message) VALUES ("NULL","$ip", "$name", "$time", "$message")") or die ("Failed to add comment"); 
} 
}
?> 

 

I'd be really happy if sum1 cud help  ;)

Link to comment
https://forums.phpfreaks.com/topic/64266-solved-blank-pages/#findComment-528960
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.