The Swedish Tower Posted July 21, 2008 Share Posted July 21, 2008 Hello I have a problem with coding a link checker. Code: <?php // start script $url==$_REQUEST[url] // check if the url is inside the site if (stristr("towerdefence.net", $url) !=false) { $check="true"; } else { $check="false"; }[...] Error: Parse error: syntax error, unexpected T_IF in C:\***\link2.php on line 6 Quote Link to comment https://forums.phpfreaks.com/topic/115909-solved-error-in-if-statement/ Share on other sites More sharing options...
MatthewJ Posted July 21, 2008 Share Posted July 21, 2008 $url==$_REQUEST[url] That line needs a semicolon Quote Link to comment https://forums.phpfreaks.com/topic/115909-solved-error-in-if-statement/#findComment-595921 Share on other sites More sharing options...
peranha Posted July 21, 2008 Share Posted July 21, 2008 $url==$_REQUEST after that line try adding a ; $url==$_REQUEST; Quote Link to comment https://forums.phpfreaks.com/topic/115909-solved-error-in-if-statement/#findComment-595922 Share on other sites More sharing options...
The Swedish Tower Posted July 21, 2008 Author Share Posted July 21, 2008 I'm not a total noob but I am little noob That fixes the problem. Thanks for the help guys:) Quote Link to comment https://forums.phpfreaks.com/topic/115909-solved-error-in-if-statement/#findComment-595926 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.