I can't figure out why this file doent move?
the move_uploaed_file function fails when ever I run it.

$newdir = "../Songs/uploaded/";
$movefile = "../uploads/".$_GET['file']."";
	if(!move_uploaded_file($movefile,$newdir)) die("cannot move file");

I am almost positive that it moves according to the directory which the php script is located.

    make sure that the appropriate users have write priveleges to the directory you are uploading files to... on your machine, php usually runs as it's own user, so you would want to either set the php user the owner of the directory, or if you don't care much about security, just chmod 777 it! just remember there are risks of data corruption etc if you give everyone access to it via 777.

    not sure if you've set up those parameters or not, but it was the first thing that came to mind when i read your post.

      Write a Reply...