Page 1 of 1
Running shell script using PHP
Posted: Sat Jan 06, 2007 5:20 am
by urnetmate
hello all,
i have to execute commands for creating directory and switching to tht dir then connect ftp and execute a bunch of commands using shell script.
how do i do this using PHP?
waiting for solution.
thx in advance.
Posted: Sat Jan 06, 2007 5:30 am
by impulse()
Be sure to use
on any input from the user or else a user has access to what commands they like (that the web server has access to).
Plz can u give an example?
Posted: Sat Jan 06, 2007 6:06 am
by urnetmate
thx for the reply
Plz can u give an example?
Posted: Sat Jan 06, 2007 6:30 am
by impulse()
Re: Running shell script using PHP
Posted: Sat Jan 06, 2007 6:56 am
by Kieran Huggins
urnetmate wrote:waiting for solution.

error Passive mode refused
Posted: Mon Jan 08, 2007 3:24 am
by urnetmate
I am getting error "Passive mode refused" on mget shell command
Please help..
waiting for solution.
Thanks in Advance
Posted: Mon Jan 08, 2007 9:08 am
by feyd
You're trying to connect to an FTP server, yes? Why not use PHP's FTP functions?
http://php.net/ref.ftp