[PHP] Working with files

2004-04-07 Thread Teo Mattiozzi Petralia
Hello! If I have a text file like; FindThisBeginning Here goes several text... FindThisEnd FindThisOtherBeginning Here goes other text... FindThisOtherEnd and so on... How can I retrieve the portion of the text between those kind of tags (FindThisBeginning, FindThisEnd, etc), and transfer them

[PHP] working with files

2004-01-28 Thread tony
hi, i have problem with writing a reading to file i want to write emails in files. like this [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] etc.. this is how I write to the file $handle = fopen($filename, a); fwrite($handle,$email\n,128); fclose($handle); ok it writes everything

Re: [PHP] working with files

2004-01-28 Thread Matt Matijevich
replace ?php $handle = fopen ($filename, r); do { $data = fread($handle, 128); if (strlen($data) == 0) { break; } print ($databr); } while (true); fclose($handle); ? with this ?php $handle = fopen ($filename, r); do {

RE: [PHP] working with files

2004-01-28 Thread Gryffyn, Trevor
: [PHP] working with files hi, i have problem with writing a reading to file i want to write emails in files. like this [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] etc.. this is how I write to the file $handle = fopen($filename, a); fwrite($handle,$email\n,128); fclose

[PHP] Working with files

2001-03-20 Thread Jon
It is a newbie question about working with local files. I just want to know if it posible to open and modify a local file (I mean that it is located in the local hard disk of the client machine) or because of security reasons it is only posible to open and modify it when the file resides in the

Re: [PHP] Working with files

2001-03-20 Thread Chris Lee
stanard newbie answer :) php is server side, not client side php is serverside there is no way of ever ever doing anything client side because of this. http://php.net/manual/en/function.fopen.php are the functions for opening files. -- Chris Lee [EMAIL PROTECTED] ""Jon""