Hi once again everyone. Iíve been away for quite a while working on one of our new products, and as such havenít had the time to write many articles over the last 2 or 3 months. Today, however, Iíve decided to share with you the workings of an FTP wrapper class that I have written for one of our upcoming products.
Although I canít reveal too much about the product that me and a couple of the SiteCubed developers are working on, I can tell you that it is written in PHP/MySQL, and makes heavy use of FTP.
As you may or may not know, PHPís support for FTP is fantastic, however because this support comes in the form of many unstructured functions, I decided to wrap the most common ones into a class, which I call MY_FTP.
Anyhow, letís get on with it and start looking at my FTP wrapper class.
If the functions in my FTP class donít work then you server probably doesnít have the FTP extension enabled. You will need to compile PHP with Ėenable-ftp or ask your web host to do it for you.