Paul7185 Posted April 1, 2008 Share Posted April 1, 2008 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 More sharing options...
uniflare Posted April 1, 2008 Share Posted April 1, 2008 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 More sharing options...
uniflare Posted April 1, 2008 Share Posted April 1, 2008 i also use 5.2.5 and do not have this problem. Link to comment https://forums.phpfreaks.com/topic/98987-problems-with/#findComment-506537 Share on other sites More sharing options...
kenrbnsn Posted April 1, 2008 Share Posted April 1, 2008 Can you post some of the code that is failing between tags? Ken Link to comment https://forums.phpfreaks.com/topic/98987-problems-with/#findComment-506538 Share on other sites More sharing options...
uniflare Posted April 1, 2008 Share Posted April 1, 2008 you may have to zip up youre script (depending on size) and post it on here. Seems like some sort of syntax issue ??? Link to comment https://forums.phpfreaks.com/topic/98987-problems-with/#findComment-506540 Share on other sites More sharing options...
Paul7185 Posted April 1, 2008 Author Share Posted April 1, 2008 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 More sharing options...
uniflare Posted April 1, 2008 Share Posted April 1, 2008 we may need the rest of your code, also are you giving us the htrml output or the raw source code? make sure you give us the page source from the result, (so we can see things like < br > etc) Link to comment https://forums.phpfreaks.com/topic/98987-problems-with/#findComment-506556 Share on other sites More sharing options...
Paul7185 Posted April 1, 2008 Author Share Posted April 1, 2008 I really hate computers sometimes. It works now. I didn't do anything to fix it and it works. Thanks for your help! Link to comment https://forums.phpfreaks.com/topic/98987-problems-with/#findComment-506561 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.