Technical Information
Monday, April 18, 2011
search keywords from static files
$content = file_get_contents('filename.extension'); //Example file_get_contents('filename.hml');
Here $key is the search word //Example $key = "php";
if(preg_match("/".$key."/", $content, $matches))
echo "found";
else
echo "not found";
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment