move_uploaded_file(...): failed to open stream:

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sa

    move_uploaded_file(...): failed to open stream:

    Trying to upload a file using win xp/iis/php.

    I've given full access to all accounts trying to get this to work? Yet
    I'm still getting read errors. Simplified the script below to the
    bare minimum.


    simpleupload.ph p
    <form enctype="multip art/form-data" action="upload. php" method="post">
    <INPUT TYPE="hidden" name="MAX_FILE_ SIZE" value="200000"/>
    <input type="file" name="file1"/>
    <input type="submit" value="UploadFi le"/>
    </form>

    upload.php
    <?php
    move_uploaded_f ile($_FILES['file1']['tmp_name'],'c:\php\upload perm');
    ?>

    Error
    Warning: move_uploaded_f ile(c:\php\uplo adperm): failed to open stream:
    Permission denied in C:\Inetpub\wwwr oot\php\upload. php on line 2

    Warning: move_uploaded_f ile(): Unable to move
    'C:\PHP\uploadt emp\php35.tmp' to 'c:\php\uploadp erm' in
    C:\Inetpub\wwwr oot\php\upload. php on line 2
  • Christian Joergensen

    #2
    Re: move_uploaded_f ile(...): failed to open stream:

    On Fri, 09 Jul 2004 16:27:16 -0700, sa wrote:
    [color=blue]
    > upload.php
    > <?php
    > move_uploaded_f ile($_FILES['file1']['tmp_name'],'c:\php\upload perm');
    > ?>
    >
    > Error
    > Warning: move_uploaded_f ile(c:\php\uplo adperm): failed to open stream:
    > Permission denied in C:\Inetpub\wwwr oot\php\upload. php on line 2[/color]

    You do not have write permissions to c:\php\uploadpe rm.

    --
    Christian Jørgensen | If ignorance is bliss
    http://www.razor.dk | - then knock the smile off my face ;)

    Comment

    Working...