Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: file/dir question


Message #1 by meu <csvega@d...> on Mon, 26 Nov 2001 19:23:30 +0800 (HKT)
On Mon, 26 Nov 2001, Adam Lang (Vacation) wrote:
thanks! It seems helpful.

> read the manual and the annotation
>
> http://www.php.net/manual/en/function.unlink.php
>
> Adam Lang
> Rutgers Casualty Insurance Company
> Systems Engineering vacation style
> ----- Original Message -----
> From: meu <csvega@d...>
> To: professional php <pro_php@p...>
> Sent: Monday, November 26, 2001 5:23 AM
> Subject: [pro_php] file/dir question
>
>
> > I was testing a short script on a pc (win2000) as belows;
> > <?php
> > $test=getcwd();
> > $dh = dir($test);
> >
> > while ($entry = $dh->read())
> > {
> > unlink($entry);
> > }
> > $dh->close();
> > ?>
> >
> > Then the following error message comes out
> > Warning: Unlink failed (Permission denied) in c:\program
> > files\nusphere\apache\nsdocs\apps\vs\admin\filietest.php on line 25
> > line 25 is where I type unlink ....stuff.
> >
> > but I check the files and they are not ready only.  same in directory,
> > it's not ready only.
> >
> > Now if I refresh the browser, error message changed to:
> > Internal Server Error
> > The server encountered an internal error or misconfiguration and was
> > unable to complete your request.
> >
> > Also, I want to know when I look athe php manual , they say some of the
> > command like unlink might not work in window. is this relevant? If so,
> > what should I deal if I work in Pc?
> >
> > Another question. In Unix I use some symbol link to some files but it
> > seems if I copies those files to pc those link will be gone. Any quick way
> > to fix this/work aroudn this?
> >
> >  Would someone please help this newbie? Thanks a lot in advance.
> >
> >
> > sam
> >
> >
> >
> >
> >
> >
>
>
>
>
>


  Return to Index