I'm trying to use via ssh2_scp_send command, for some reason the remote server that I trying to copy to him a file, told me he see: "scp -pt /........"
The SysAdmin of the remote server told me that I need to remove the -p option,
how this is po...
Hi Trying to send a file to another server using scp.. cannot use sftp as it is not installed on my server so i am getting a function not found for ssh2_connect.
So my only option as i can see it is scp.
Now the problem come with i cannot includ...
I want to copy a zip file from remote to my local system using SCP.
I have a php file where i use php function exec();
if i run upload.php like http://www.abc.com/upload.php.
The zip file should copy to my local linux folder my path is
I switched over to zendserver(VS8 php(5.3) binaries), and now curl(7.19.4) seems to be lacking SCP and SFTP protocol support(verified by errors and phpinfo). Curl itself is installed correctly, it's just lacking the protocol support mentioned.
I would like to do remote deployment from my build machine onto a server. The remoting can be done via ssh commands from a script, but I would rather use phing and a deploy.xml file that would do the automation.
What alternatives do I have to do...
I'm trying to fetch a file and send a command to another server.
I'm trying to do the following:
system('scp email@example.com:/etc/something.conf /tmp/',$ret);
But the file isn't copied. If I echo $ret it outputs 1. If I log to the server...
I am using this code in html form
<input name="button" type="button" value="Step 2" onclick="location.href='../ticket/scp/auto.php?dest=../scp/admin.php?t=staff&a=new'"/>
when i use print_r($_GET) i get
Array ( [dest] => ../scp/...
I am using the PHP function ssh2_scp_send to transfer files from one server to another. The interesting things is that if I write the permission in it's octal form (ie 0644) directly everything works fine. If I instead enclose this in inverted co...
I have a question that has been bugging me
recently i wanted to write a webpage that will use the php-expect to SCP an image from another server and then display it in an image TAG
here is my code
// Copies file from remote host: