how to copy .php file from server if I know the full path of that file?
<p>I searched a lot on this and I founded <a href="http://php.net/manual/en/function.copy.php#83955" rel="nofollow noreferrer">How to copy file</a>, and then I started on it</p>

<p>I write code on my <code>localhost</code> the code is from above link and that is:</p>

<pre><code>&lt;?php
if(!@copy('http://someserver.com/abc.jpg','./abc.jpg'))
{
    $errors= error_get_last();
    echo "COPY ERROR: ".$errors['type'];
    echo "&lt;br /&gt;\n".$errors['message'];
} else {
    echo "File copied from remote!";
}
?&gt;
</code></pre>

<p>and I used above code and image with url (<strong><a href="http://someserver.com/abc.jpg" rel="nofollow noreferrer">http://someserver.com/abc.jpg</a></strong>) of the site <code>abc.jpg</code> is downloaded in my localhost's projects directory... 
So now I tried for <strong>xyz.php</strong> file on same server and I got the <code>xyz.php</code> but that file is <strong>empty</strong> so why this happens ? anyone have idea how to download that file, or it is not possible</p>

<p><a href="https://i.stack.imgur.com/k9AjS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k9AjS.png" alt="enter image description here"></a></p>