acctman Posted February 12, 2009 Share Posted February 12, 2009 I'm getting this erro PHP Parse error: syntax error, unexpected T_ISSET for the line below if (isset($_GET['mid']) && isset($_GET['iid']) && isset($_GET['idat']) && isset($_GET['sec'])) { Link to comment https://forums.phpfreaks.com/topic/144864-unexpected-t_isset-error/ Share on other sites More sharing options...
corbin Posted February 12, 2009 Share Posted February 12, 2009 What are the lines above and below it? 1-3 lines in either direction would be fine. Link to comment https://forums.phpfreaks.com/topic/144864-unexpected-t_isset-error/#findComment-760199 Share on other sites More sharing options...
drisate Posted February 12, 2009 Share Posted February 12, 2009 whats the last code line before that bro? EDIT : you beated me corbin lol It's time for me to go to bed anyway ... All yours bro hehe Link to comment https://forums.phpfreaks.com/topic/144864-unexpected-t_isset-error/#findComment-760201 Share on other sites More sharing options...
acctman Posted February 12, 2009 Author Share Posted February 12, 2009 whats the last code line before that bro? EDIT : you beated me corbin lol It's time for me to go to bed anyway ... All yours bro hehe <?php session_start(); $userid = $_SESSION['userid']; if($userid == '') { header("Location: http://www..com"); exit; } ob_start(); //hold output require_once '../password.php'; if (isset($_GET['mid']) && isset($_GET['iid']) && isset($_GET['idat']) && isset($_GET['sec'])) { Link to comment https://forums.phpfreaks.com/topic/144864-unexpected-t_isset-error/#findComment-760205 Share on other sites More sharing options...
corbin Posted February 12, 2009 Share Posted February 12, 2009 What's the full error message? Should be something like "Unexpected T_ISSET, expecting <blah>." Anyway, what is the last line of password.php? Link to comment https://forums.phpfreaks.com/topic/144864-unexpected-t_isset-error/#findComment-760210 Share on other sites More sharing options...
acctman Posted February 12, 2009 Author Share Posted February 12, 2009 What's the full error message? Should be something like "Unexpected T_ISSET, expecting <blah>." Anyway, what is the last line of password.php? [09-Feb-2009 19:02:36] PHP Parse error: syntax error, unexpected T_ISSET in /home/site1/public_html/files/pvtexp.php on line 13 Link to comment https://forums.phpfreaks.com/topic/144864-unexpected-t_isset-error/#findComment-760216 Share on other sites More sharing options...
genericnumber1 Posted February 12, 2009 Share Posted February 12, 2009 There's nothing syntactically wrong with the code you've posted here. Did you make sure you were uploading the file in the correct place? Link to comment https://forums.phpfreaks.com/topic/144864-unexpected-t_isset-error/#findComment-760222 Share on other sites More sharing options...
corbin Posted February 12, 2009 Share Posted February 12, 2009 Hrmmmm weird.... What is the last line of the required file? Nothing in the snippet you posted should cause an error. Link to comment https://forums.phpfreaks.com/topic/144864-unexpected-t_isset-error/#findComment-760223 Share on other sites More sharing options...
acctman Posted February 12, 2009 Author Share Posted February 12, 2009 Hrmmmm weird.... What is the last line of the required file? Nothing in the snippet you posted should cause an error. the weird thing is I can't duplicate that error either. the coding is part of a image display script i wrote for my comminuty site. I'll just have to keep monitoring it and ask users if they experience an problems Link to comment https://forums.phpfreaks.com/topic/144864-unexpected-t_isset-error/#findComment-760252 Share on other sites More sharing options...
corbin Posted February 12, 2009 Share Posted February 12, 2009 Wait.... You don't consistently get that error???? Link to comment https://forums.phpfreaks.com/topic/144864-unexpected-t_isset-error/#findComment-760255 Share on other sites More sharing options...
The Little Guy Posted February 12, 2009 Share Posted February 12, 2009 are you showing us the code from pvtexp.php? Link to comment https://forums.phpfreaks.com/topic/144864-unexpected-t_isset-error/#findComment-760258 Share on other sites More sharing options...
PFMaBiSmAd Posted February 12, 2009 Share Posted February 12, 2009 Code does not randomly generate php parse errors unless the code is being altered or your php installation is corrupted. Link to comment https://forums.phpfreaks.com/topic/144864-unexpected-t_isset-error/#findComment-760261 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.