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.
Running shell script using PHP
Moderator: General Moderators
-
impulse()
- Forum Regular
- Posts: 748
- Joined: Wed Aug 09, 2006 8:36 am
- Location: Staffordshire, UK
- Contact:
Code: Select all
shell_execCode: Select all
escapeshellargPlz can u give an example?
thx for the reply
Plz can u give an example?
Plz can u give an example?
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
Re: Running shell script using PHP
urnetmate wrote:waiting for solution.

error Passive mode refused
I am getting error "Passive mode refused" on mget shell command
Please help..
waiting for solution.
Thanks in Advance
Please help..
waiting for solution.
Thanks in Advance
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
You're trying to connect to an FTP server, yes? Why not use PHP's FTP functions?
http://php.net/ref.ftp
http://php.net/ref.ftp