Re: FW: Which function creates files?
| From: | Matt McClanahan | Date: | Sat, 01 Jul 2000 20:41:00 +0000 |
| Subject: | Re: FW: Which function creates files? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4293@lists.php.net to get a copy of this message | ||
On Sun, 2 Jul 2000, Maxim Maletsky wrote:
>
> I'm thinking to create a file engine that will build (create) files basing
> on data stored in MySQL database,
>
> while searching php.net I haven't found any function that writes or better
> say creates and names files for you.
>
> Could anyone give a tip on this?
> I'm using php4.
Read over the filesystem functions in the PHP manual, there are a handful
of ways to do it.
http://zend.php.net/manual/ref.filesystem.php
fopen() will create files if they don't exist, provided you open it with
one of the writeing modes, like w, w+, a, or a+
Matt