Re: Understanding system multiple steps

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mark Steudel wrote:
So I am using system() to try and access sftp from my php scripts. How do I
do multiple steps once I've initiated my command
e.g.
$file = 'filname.txt';
system( "C:\sftp\sftp.exe <login flags> | put ".$file );
Im on a windows box, so I don't know if I can do something like this ...
anyway any help would be ppreciated
THanks


Can you run that command from command line? System isn't designed for interactive steps.

If you can't run a particular command from command line then you can't run it with system.

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux