exec("touch /path/to/filename");
exec(":> /path/to/filename");
or just
fclose(fopen("/path/to/filename","w+"));

Andrey
----- Original Message ----- 
From: "andy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to