You've already seen how PHP4's FTP functions can help youinteract with files on a remote server. In this article, learn how to usePHP's other file and directory manipulation functions, and build anequivalent application that demonstrates the difference between the twoapproaches.
In the first part of this article, I took a look at the new FTP commands built into PHP4, and demonstrated how they could be used to build a fully Web-based FTP client. But there's more than one way to skin a cat - which is why the second part of this article will explore an alternative technique of performing remote file management, this time without resorting to PHP's FTP commands.
Over the next few pages, I'll be explaining how your PHP scripts can interact with a filesystem to display files and directories, copy and move data, and transfer files via the Web browser. Keep reading!
This article copyright Melonfire 2000. All rights reserved.