My FTP Wrapper Class for PHP
(Page 1 of 7 )
In this article Mitchell shares his FTP wrapper class which he has written in PHP. It includes error checking and many useful functions.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.
Next: Wrapping? Huh? >>
More PHP Articles
More By Mitchell Harper