where do you get those numbers???
$data[27753]
don't tell me you are counting all the lines? that is totally wrong.
if you want to find a <img> tag then use regular expression.
something like that. what worrry about numbers.PHP Code:$fp = fopen("http://www.boogiebug.com/folder/index.html", "r");
$arrlen = count($fp);
fclose($fp);
$length = count($newArray);
for ($j = 0; $j <$length ; $j++) {
if (preg_match ('/^[file1.jpg]/i', $fp[$j], $matches)) {
$LEVEL = "file1.jpg";
} else {
$LEVEL = "Oops";
}
echo $LEVEL;
not tested but should work.




Reply With Quote