logo       

Re: every file should have the right to be where it wants to be: msg#00326

Subject: Re: every file should have the right to be where it wants to be
Hi Malte,

if your destination dir is outside the document root, you probably will have
to set the permissions manually by logging into W2K as administrator.

BTW, cute name yours. Are you a he or a she? Do you go by that name with
your esteemed customers?

Ignatius
____________________________________________
----- Original Message -----
From: "malte 'the bitch' fucks" <der_diggen@xxxxxxx>
To: <php-windows@xxxxxxxxxxxxx>
Sent: Friday, May 23, 2003 2:02 PM
Subject: [PHP-WIN] every file should have the right to be where it wants to
be


> Hi,
> i'm writing a little File Managment Script. I've done all the file, dir
> listings and you even can rename and delete files.
> Now i want to implement a function which allows users to move files
around.
> Every user has a dir named after his id and infinite Subdirs under that.
>
> PHP gives me this:
> Warning: copy(filebase/1/images/test) [function.copy]: failed to create
> stream: Permission denied in c:\htdocs\schedule\fileops.php on line 126
>
> with this code
>
>     if($pfad)
>     {
>         if(@copy($afile, $pfad))  // afile =
> 'filebase/1/images/test/test22/verlauf3.jpg' & $pfad = 'filebase/1/images'
>         {
>             unlink($afile);
>             ?>
>             <script language="javascript">
>             this.close();
>             </script>
>             <?
>         }
>         else
>         {
>             ?>
>             <table cellspacing="3" cellpadding="3" width="100%" border="1"
> style="border-style: double; border-width: 4px;" bordercolor="<? echo
> $color[0]; ?>" height="100%">
>             <tr>
>                 <td align="center" >Datei '<? echo $afile; ?>' konnte
nicht
> nach '<? echo $pfad; ?>' verschoben werden!</td>
>             </tr>
>             <?
>         }
>     }
>
> i even tried to chmod every file while listing with 777
>
>                     chmod($dir."/".$filename, "0777");
>
> but the rights PHP shows me are 100666
> thx for your time
> diggn / malte / whatever
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe