cry of war Posted August 10, 2007 Share Posted August 10, 2007 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); ?> Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted August 10, 2007 Share Posted August 10, 2007 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. Quote Link to comment Share on other sites More sharing options...
lemmin Posted August 10, 2007 Share Posted August 10, 2007 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. Quote Link to comment Share on other sites More sharing options...
HuggieBear Posted August 10, 2007 Share Posted August 10, 2007 Look at ini directives and error handling functions for correct use of display_errors Regards Huggie Quote Link to comment Share on other sites More sharing options...
cry of war Posted August 10, 2007 Author Share Posted August 10, 2007 yeah sorry i have it set for 1 i just wanted to see what a 15 would do there but it still not showing anything and there is nothing in the data error logs Quote Link to comment Share on other sites More sharing options...
cry of war Posted August 10, 2007 Author Share Posted August 10, 2007 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); Quote Link to comment Share on other sites More sharing options...
cry of war Posted August 10, 2007 Author Share Posted August 10, 2007 never mind i was missing a ; Quote Link to comment Share on other sites More sharing options...
EmmaB Posted April 28, 2008 Share Posted April 28, 2008 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 Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted April 28, 2008 Share Posted April 28, 2008 This line has invalid syntax: if($check_name_length >= 30); || if($check_message_length >= 250); It should be: if($check_name_length >= 30 || $check_message_length >= 250) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.