title: Executing PHP script via SSH
body: <p>I want to send data to my server via SSH. The data is image files that need to be saved into directories on the server. </p>
  
  <p>If I run the script via SSH how can I get a PHP script to read the image files?</p>
  
  <p>For example, if I used bash I could do </p>
  
  <pre><code>./uploadimage.bash -image.jpg
  </code></pre>
  
  <p>and that would be that. But my knowledge of PHP is limited. Usually PHP uses the $_FILE array when dealing with files, as far as I know. Do I need to use this if I send the files by SSH?</p>