title: PHP copy file issue
body: <p>I am having a weird issue here</p>
  
  <p>I am trying to copy file to the folder</p>
  
  <pre><code> if ($folder) {
          codes.....
      } else if (!copy($filename, $root.$file['dest']) &amp;&amp; !copy($Image, $root.$imagePath)){
               throw new Exception('Unable to copy file');
      }
  </code></pre>
  
  <p>My question is the <code>$image</code> file never gets copied to the destination</p>
  
  <p>However, if I do</p>
  
  <pre><code>if ($folder) {
          codes.....
      } else if (!copy($Image, $root.$imagePath)){
               throw new Exception('Unable to copy file');
      }
  </code></pre>
  
  <p>It works. </p>
  
  <p><strong>Edit:</strong></p>
  
  <p><strong>I know the first filename statement is true.</strong></p>
  
  <p>Can anyone help me to solve this weird issue? Thanks so much!!!</p>