Re: latest version of PHP won't let you....
| From: | G Schneider | Date: | Wed, 25 Jul 2001 17:07:24 +0000 |
| Subject: | Re: latest version of PHP won't let you.... | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-8499@lists.php.net to get a copy of this message | ||
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" <gpickett@gpick.net> wrote in message
news:20010725151155.24265.qmail@pb1.pair.com...
>
> "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" <jefferrs@blueyonder.co.uk> wrote in message
> news:20010725142102.92704.qmail@pb1.pair.com...
> > 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.
> > ++++++++++++++++++++++++++++++++++++++++
> >
> >
>
>