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'])) { Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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'])) { Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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???? Quote Link to comment 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? Quote Link to comment 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. 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.