"Del" is a DOS command. Try:
exec ("cmd.exe /c del $file"); for NT and W2K or
exec("command.com /c del $file"); for Windows 9X and ME
Glenn
"G Schneider" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> After installing the latest version of PHP for windows,
> I have found that it won't let you use the exec() function.
>
> e.g. if you want to delete a file on a windows server, you would use
> exec("del $file"); rather than unlink("$file") which is for UNIX based
> servers.
>
> Or am I wrong and there is just a setting that needs to be enabled in
> php.ini file?
>
> This is quite an important thing, really.
>
> ?
>
>
> ++++++++++++++++++++++++++++++++++++++++
> http://www.webmastersdog.com
> where website owners go. and talk about stuff.
> ++++++++++++++++++++++++++++++++++++++++
>
>
--
PHP Windows 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]