Going crazy here, can't figure out why rename(), copy() functions don't work <p>Here is what I have,</p> <pre><code>$name = "image.jpeg"; $to = "/var/www/vhosts/site.com/httpdocs/termination_files/personal_photos/original/".$name; $from = "/var/www/vhosts/site.com/httpdocs/public/userimages/original/".$name; </code></pre> <p>and </p> <pre><code>rename($from,$to); </code></pre> <p>or</p> <pre><code>copy($from,$to); </code></pre> <p>Shouldn't this work?! Directory permissions are set to 755, paths are copied from ssh, so they're accurate. Files exist in the from location. </p>