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
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
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 {
: [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
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
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""
6 matches
Mail list logo