return the first line in a given file containing the given string
Download
View Source (print view)
Rating : 4.7
Views : 176
function getline($file, $string) {
/* return the first line in a given file containing the given string */
$file_pointer = fopen("$file", "r");
for ($i = 0; !feof($file_pointer); $i++) {
$line = fgets($file_pointer, 1024);
if (ereg($string, $line))
break;
}
fclose($file_pointer);
return $line;
}
php script" class="neww" target="_b, how to use this code, php_tools, yahoo_status_shopping_cart.php, php file upload, shopping_cart and user=0--, drop down, mysql_commit, forum, shopping_cart', backup, updateoraddimagesonpages, rtttl to 8 bit source code, stefan_hornea, rent_and_0=1_union_select, how to run php, php_script"_class="neww"_target="_blank"_title="im_neuen, embed_snippets, farah_aead, sql incection, antoine anik