move_uploaded_file() different directory
Posted: Sun Oct 31, 2010 12:06 pm
How can I change this code around to move a file from /sam/img/ to /info/img/?
Code: Select all
$destination_path = '../../info/img/';
$target_path = $destination_path . $tag;
if(@move_uploaded_file($_FILES['thumb']['tmp_name'], $target_path)) {
$result = 1;
}