Thank you for your reply.

I have since discovered that the latest version of PHP (4.0.6) has actually
*enabled* the unlink() function! So it's not just for UNIX anymore! But it
has also *disabled* the exec("del $file"); way of doing it! What I want to
know is why isn't it mentioned in the changes log at the php.net website?


++++++++++++++++++++++++++++++++++++++++
http://www.webmastersdog.com
where website owners go. and talk about stuff.
++++++++++++++++++++++++++++++++++++++++
"Glenn Pickett" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> "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]

Reply via email to