mlse
11-08-2007, 11:03 AM
Hi all,
I am currently deciding which way to implement a class that handles FTP transfers.
From reading the PHP manual, I see that I have three options as follows:
1) Use the SSH extension in PECL.
2) Use the ftp built-ins.
3) Use fopen("ftp(s)://username:password@ftp.myserver.com:port", mode);.
Currently I have implemented method 3 because it is far more straight forward than either of the other two.
What, therefore, are the advantages (if any) of the other two methods?
All I am doing is opening an FTP connection, writing a bunch of files and closing the connection - which seems problem-free and very simple using method 3!
TIA
Mike.
I am currently deciding which way to implement a class that handles FTP transfers.
From reading the PHP manual, I see that I have three options as follows:
1) Use the SSH extension in PECL.
2) Use the ftp built-ins.
3) Use fopen("ftp(s)://username:password@ftp.myserver.com:port", mode);.
Currently I have implemented method 3 because it is far more straight forward than either of the other two.
What, therefore, are the advantages (if any) of the other two methods?
All I am doing is opening an FTP connection, writing a bunch of files and closing the connection - which seems problem-free and very simple using method 3!
TIA
Mike.