From: "Jan Grafström" <[EMAIL PROTECTED]>
> Hi!
> I am trying to get a file deleted when I send a variabel with the value
> "delete".
> I have this file:
>
> -----
> $message = ereg_replace("\r","", $message);
> $message = "<list><med>$message</med><nam>$name</nam></list>;
> $fp = fopen (basename($PHP_SELF) . ".xml", "a");
> fwrite ($fp, $string);
> fclose ($fp);
> -----
>
> and the file I want unlnked is the .xml-file
>
> I am very thankful if I can get any help with this.
> Regards jan
Try:
<?
system("rm $file");
?>
:-)
--
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]