Hello,
how can I run php script A.php on another FTP from script B.php on my localhost.
B.php (on my localhost)
PHP Code:
/*
FTP connection here...
*/
ftp_exec(php5 folder/A.php -a 13);
All I get is this:
Warning: ftp_exec() [function.ftp-exec]: Unknown SITE command.
Id tried ftp_raw instead, but nothings changed.
I get: 500 - Unknown command
If I run local script C.php on that FTP, containing the same command, but with exec() function, everything works.
C.php
PHP Code:
exec(php5 folder/A.php -a 13);
Thanks for help in advance.
Hello,
how can I run php script A.php on another FTP from script B.php on my localhost.
B.php (on my localhost)
PHP Code:
/*
FTP connection here...
*/
ftp_exec(php5 folder/A.php -a 13);
All I get is this:
Warning: ftp_exec() [function.ftp-exec]: Unknown SITE command.
Id tried ftp_raw instead, but nothings changed.
I get: 500 - Unknown command
If I run local script C.php on that FTP, containing the same command, but with exec() function, everything works.
C.php
PHP Code:
exec(php5 folder/A.php -a 13);
Thanks for help in advance.
|
|
Search Webmaster Help and Solution
Run php script on FTPRelated ItemsQuery failed: connection to localhost:3354 failed (errno=111, msg=Connection refused). |
