Re: [PHP] Need eregi() help

2002-02-01 Thread Lars Torben Wilson
On Fri, 2002-02-01 at 13:28, Robby wrote: > I am using this code below but it does not work (php in installed and > working proplely): You should provide a bit more information than "it's not working". It helps immensely to know exactly *how* it isn't working. That said, here's what sprang immed

RE: [PHP] Need eregi() help

2002-02-01 Thread Rick Emery
What do you mean " it does not work"? What error do you get? Logic error? Compile error? -Original Message- From: Robby [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 3:28 PM To: [EMAIL PROTECTED] Subject: [PHP] Need eregi() help I am using this code below b

Re: [PHP] Need eregi() help

2002-02-01 Thread Erik Price
On Friday, February 1, 2002, at 04:28 PM, Robby wrote: > I am using this code below but it does not work (php in installed and > working proplely): > > > $file=fopen("http://somedomain/time.html";, "r"); > if (!$file) > > echo "error when connect\n"; > exit; > } > $line = fread ($f

[PHP] Need eregi() help

2002-02-01 Thread Robby
I am using this code below but it does not work (php in installed and working proplely): http://somedomain/time.html";, "r"); if (!$file) echo "error when connect\n"; exit; } $line = fread ($file, filesize ($file)); eregi("^{}{.*}{}$", $line, $out) echo "$out[1]"; fclose($file); ?>