From: "PHPDiscuss - PHP Newsgroups and mailing lists" <[EMAIL PROTECTED]>
> if (eregi ('' . '[.+]'
> '', $line, $cont))
[.+] is going to match a literal period or plus sign and only one of them.
You either want just .+ to match one or more of any character or (.+) if you
want to capture
$cacheTime) {
$file = fopen ("local file", "r");
if (!$file) {
$dump = "Does not exist";
} else {
while (!feof ($file)) {
$line = fgets ($file);
if (eregi ('', $line, $pt)) {
$cntrp=$cntrp+1; $post[$cntrp]=$pt[1];
$cacheTime) {
$file = fopen ("local file", "r");
if (!$file) {
$dump = "Does not exist";
} else {
while (!feof ($file)) {
$line = fgets ($file);
if (eregi ('', $line, $pt)) {
$cntrp=$cntrp+1; $post[$cntrp]=$pt[1];
3 matches
Mail list logo