note 33615 rejected from function.fopen by torben
| From: | torben@php.net | Date: | Tue, 01 Jul 2003 23:51:24 +0000 |
| Subject: | note 33615 rejected from function.fopen by torben | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-51327@lists.php.net to get a copy of this message | ||
Note Submitter: Dario
----
How would you open "any" file in a directory (similar to *)?
I have an outlook session exporting .txt attachments to a directory:
i would like the php code to "listen" to that directory and bring in any text file....
any ideas???
this doesn't work, but i'm looking for something similar
<?
while($fd=fopen("*","rb"))
{
while ($line=fgets($fd))
{
do something
}
}
?>
thanks much