dtdetu Posted December 8, 2008 Share Posted December 8, 2008 hello i am searchin for this text in a page <img src="http://www.seobook.com/images/competitive-keywords-vs-longtail-keywords.gif"> i use this code but it cant find , can some one help me what i am doing wrong thanks if(stripos($description, "<img src=\"[^<]*\">") !== false){ echo "found"; die(); } Quote Link to comment https://forums.phpfreaks.com/topic/136042-stripos-question/ Share on other sites More sharing options...
JonnoTheDev Posted December 8, 2008 Share Posted December 8, 2008 This function does not accept regular expressions. Use php.net manual for accepted function parameters. preg_match() is used for regular expression matching. Quote Link to comment https://forums.phpfreaks.com/topic/136042-stripos-question/#findComment-709362 Share on other sites More sharing options...
.josh Posted December 8, 2008 Share Posted December 8, 2008 Are you looking for that exact string (as in, checking if it's there)? Are you wanting to search for img tags in general? img tags with path but any filename? Any path, exact file name? img tags with any file name of .gif extension? Need more info. Quote Link to comment https://forums.phpfreaks.com/topic/136042-stripos-question/#findComment-709846 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.