<p>I am currently publishing code behind .aspx in SharePoint. I can automatically publish the .dll to the bin folder of the virtual directory, but I cannot figure out how to push the .aspx pages and images to the server without manually using SharePoint Designer.</p>

<p>Where does the folder exist?</p>

<p>Or do I need to create a SharePoint feature for this?</p>

Why not use
shell_exec
and
scp
?
```
```
<?php
    $output = shell_exec('scp file1.txt dvader@deathstar.com:somedir');
    echo "<pre>$output</pre>";
?>
```
```