how to echo data that we read with file_get_contents
Posted
by Ronnie Chester Lynwood
on Stack Overflow
See other posts from Stack Overflow
or by Ronnie Chester Lynwood
Published on 2010-04-14T19:19:28Z
Indexed on
2010/04/14
19:23 UTC
Read the original article
Hit count: 553
hello. im trying to echo YH if $url contains http://yahoo.com/ ! how can i do it? I've tried something like this;
$url = "'".$get['url']."'";
$needle = "http://yahoo.com/";
$contents = file_get_contents($url);
if(stripos($contents, $needle) !== false) {
$qqq = "YH";
}
but it's not working. can anybody help me with true syntax? thanks..
© Stack Overflow or respective owner