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(); } 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. 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. Link to comment https://forums.phpfreaks.com/topic/136042-stripos-question/#findComment-709846 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.