Grow your CSS skills. Land your dream job.

function copy() failed

  • # March 31, 2013 at 5:28 pm

    Hie guys i really don’t know what to do i tried different option, i just cant come yet
    with the right way to solve this error. it just don’t i’m running win7,
    l just try to copy a file from a folder to another one

    Warning: copy(member_Files/misterlae8) [function.copy]: failed to open stream: Permission denied

    # March 31, 2013 at 10:16 pm

    This sounds like a Windows issue, not related to web development. You might have better help in a Windows forum.

    # March 31, 2013 at 11:22 pm

    Everything and anything you need to know about windows 7 http://www.sevenforums.com/

    # April 1, 2013 at 3:32 am

    Surely this is a windows issue.

    # April 1, 2013 at 5:59 pm

    Thank you guys, i solved the error.
    first i desinstaled my windows, after that i instaled all back but i download the last version wampp, but the errors is gone. So after i run it again i get this error
    Warning: copy(): The second argument to copy() function cannot be a directory
    thist the code

    $source =”pic/pic1.jpg”;
    $dest =”member”;
    if (copy($source, $dest”){

    } else {
    echo “The specified file could not be moved. Please try again.”, “n”;
    }

    the problem persist so itried like this from research
    $sour = basename($source);
    and i put it like this and it works

    if (copy($source, $dest.”/”.$sour”){

    so i hope this comment will help some other people

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".