Re: how to create a file with php
| From: | Andrey Hristov | Date: | Thu, 11 Apr 2002 15:21:08 +0000 |
| Subject: | Re: how to create a file with php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92589@lists.php.net to get a copy of this message | ||
exec("touch /path/to/filename");
exec(":> /path/to/filename");
or just
fclose(fopen("/path/to/filename","w+"));
Andrey
----- Original Message -----
From: "andy" <news.letters@gmx.de>
To: <php-general@lists.php.net>
Sent: Thursday, April 11, 2002 6:14 PM
Subject: [PHP] how to create a file with php
> Hi there,
>
> I am wondering how to create a file on the server. I do not want to write
> anything to the file. Just create it.
>
> Thanx Andy
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>