Works locally but not live.
My file location is piercemcgeough.co.uk/com533/wolfhatmartialarts/admin/addproduct.php
And where i want the image to go is piercemcgeough.co.uk/com533/wolfhatmartialarts/images/products/

Warning i get live is:
Warning: move_uploaded_file(../images/products/wolf - Copy.jpg): failed to open stream:
Permission denied in /usr/local/pem/vhosts/171950/webspace/httpdocs/piercemcgeough.co.uk/com533/wolfhatmartialarts/admin/addproduct.php on line 46

Warning: move_uploaded_file(): Unable to move '/usr/local/pem/vhosts/171950/tmp/phpOWqMkC' to '../images/products/wolf - Copy.jpg' in /usr/local/pem/vhosts/171950/webspace/httpdocs/piercemcgeough.co.uk/com533/wolfhatmartialarts/admin/addproduct.php on line 46

And this is my code.
PHP Code:
if($_POST['add']){
        
$target "../images/products/";
        
$target $target basename($_FILES['photo']['name']); 
        
        
$pname $_FILES['photo']['name'];
        
$ptemp $_FILES['photo']['tmp_name'];
        
$ptype $_FILES['photo']['type'];
        
$psize $_FILES['photo']['size'];

        if(
move_uploaded_file($_FILES['photo']['tmp_name'], $target)){ 
            
redirect_to('index.html');
        } 
Really confused and stuck