kevinkhan Posted June 29, 2010 Share Posted June 29, 2010 Hi guys.. What does this string mean? '/top\.location\.replace\(\"http\:\/\/www\.bebo\.com\/SignIn\.jsp"\)/i' i found it in this piece of code if (preg_match('/top\.location\.replace\(\"http\:\/\/www\.bebo\.com\/SignIn\.jsp"\)/i', $data, $matches)) return false; Thanks Quote Link to comment Share on other sites More sharing options...
cags Posted June 29, 2010 Share Posted June 29, 2010 It's a regular expression designed to search $data for the string... top.location.replace("http://www.bebo.com/SignIn.jsp") ...case insensitively. As it doesn't actually use any special regex syntax it may have just as well have used... stripos($data, 'top.location.replace("http://www.bebo.com/SignIn.jsp")'); 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.