"doom.txt"
123CHINA
JAYCHINASER
JAYBHARATMARUTI
DCOCHINAING
JAYJALARAM
JCHINAMZ
"test.php"
<?php
$filename="doom.txt";
$contents=file($filename);
$reg_str="/[a-zA-Z0-9]{0,26}(?i)(china)[a-zA-Z0-9]{0,9}$/";
$domain_array=preg_grep($reg_str,$contents);
$domain_num=count($domain_array);
echo $domain_array[1]." ".$domain_array[2]." ".$domain_num;
?>
it can work well on win98+php4
but it can't work on linux+apache+php
why??please help me