mardi 4 août 2015

setting ftp to passive mode by default in php.ini

after a server change, it seems all php script which use ftp need to be modified as follows

$conn = ftp_connect("host.com");    
ftp_login($conn,"user", "pass");     

//must add this:
ftp_pasv($conn, true);

is there a simple way to mimic this call to ftp_pasv through php.ini (or some other config file)

would be easier than modifying each script



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire