note 33615 added to function.fopen
| From: | Dario at rack1 dot php dot net | Date: | Tue, 01 Jul 2003 22:47:30 +0000 |
| Subject: | note 33615 added to function.fopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-51323@lists.php.net to get a copy of this message | ||
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
----
Manual Page -- http://www.php.net/manual/en/function.fopen.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33615
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33615&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33615&report=yes