Re: Re: regex help and file question
| From: | PHP Gen | Date: | Sat, 07 Aug 2004 22:39:01 +0000 |
| Subject: | Re: Re: regex help and file question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193100@lists.php.net to get a copy of this message | ||
> Hi,
>
> I can't answer your regexp question but some
> thoughts on file() etc.:
> - file() returns the contents line by line as an
> array, so this makes only
> sense if you need the contents in this form, e.g.
> for looping through each
> line and applying a function or whatever
> - fread() requires a file handle that you have to
> create with fopen(), so
> file_get_contents() is kind of a shortcut for
> fopen()/fread()
>
Hey,
Thanks for replying and the answer to my second Q,
sounds like file_get_contents() is good for me now.
I think i found a solution for the regex too, just
have to modify some parts.
Cheers,
Mag
=====
------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail