Jump to content

Problems with >


Paul7185

Recommended Posts

I need serious help......

 

Anywhere that a > appears in my document, it acts like the PHP is ending. It's happening in my variables, echos, and even my if statements.

 

I tried replacing the > with > in my strings and it worked, but I can't do that with the logic.

 

The document is an include. Would that have anything to do with this?

 

I've never had this problem before. I've also never used PHP includes before. (I'm a student)

 

I'm using PHP version 5.2.5

 

Please help!

Link to comment
https://forums.phpfreaks.com/topic/98987-problems-with/
Share on other sites

very very strange, should not end the script without the ? before.

 

eg ?> would end the script...

 

iive never seen this before, looks like some sort of parsing error, try updating your php version, which php version do you have?

 

also make sure short_tags and asp_style_tags is not used in php.ini

Link to comment
https://forums.phpfreaks.com/topic/98987-problems-with/#findComment-506534
Share on other sites

I checked PHP.ini and couldn't find either of those variables...

 

Here's a piece of my code:

function checkTie()
{
if ($_SESSION["move"] >= 
{
	if (checkTwo("x") == -1)
                {
        	$message = 'Wow, we both suck. Its a tie. Wanna <a href="t3.php">play again?</a>';
                $gameOver = true;
                }
}
}

 

The output of that statement is:

= 8 ) { if (checkTwo("x") == -1) { $message = 'Wow, we both suck. Its a tie. Wanna play again?'; $gameOver = true; } } }

 

Thanks for the quick replies!

 

Link to comment
https://forums.phpfreaks.com/topic/98987-problems-with/#findComment-506549
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.