> 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php