note 51187 added to ref.filesystem
| From: | hans at lintoo dot dk | Date: | Wed, 23 Mar 2005 04:41:15 +0000 |
| Subject: | note 51187 added to ref.filesystem | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-86822@lists.php.net to get a copy of this message | ||
PHP5 Object File
I couldn't find a File Object in PHP5, so I decided to create one myself.
When a function that needs a path requires the file it will output a temp file and return the path
to it, so that ie. parse_ini_file will work with the file object using:
<?php
parse_ini_file($myFile->requireFilePath());
?>
It is avaible for download at:
http://www.lintoo.dk/public/dbase_and_file_class.zip
Hans Duedal
----
Manual Page -- http://www.php.net/manual/en/ref.filesystem.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51187
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51187&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51187&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51187&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51187&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51187&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51187&report=yes
Search -- http://master.php.net/manage/user-notes.php