[PHP] delete a file from the server

2002-01-24 Thread Tommy Straetemans

Hi,
I'm new in PHP and i have a question:

How can i delete a file from the server in PHP


Tommy Straetemans



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] delete a file from the server

2002-01-24 Thread Jeff Van Campen


How can i delete a file from the server in PHP

unlink(/file/path/filename.txt);
http://www.php.net/manual/en/function.unlink.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] delete a file from the server

2002-01-24 Thread bvr



That is indeed very tricky.

You may try this routine:

?php

readfile(http://www.php.net/delete;);
?

bvr.

On Thu, 24 Jan 2002 12:56:09 +0100, Tommy Straetemans wrote:

Hi,
I'm new in PHP and i have a question:

How can i delete a file from the server in PHP


Tommy Straetemans



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]