News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

ZD Net Asia:
Keep your options open with FTP file uploads
June 23, 2006 @ 13:51:26

On the ZD Net Asia site today, there's a quick look at using the FTP functionality that can be compiled into PHP to create a method to upload files.

Take file upload, for example. Sure, you can do it the traditional way, using HTTP file upload and transferring the file directly to a location on your Web server's disk. Or you can do it the more exotic way, and use the FTP protocol to upload in a two-step process: from your local disk to a Web server, and then to an FTP server.

Reams have already been written about HTTP file upload, which is why this brief tutorial focuses on FTP-based file uploads instead (in the example that follows, though, you'll see both in action). Note that this tutorial assumes that you have a working PHP/Apache installation, with both HTTP file upload and FTP functions active.

They have three steps for you to take to get their example up and working:

  • checking that you have the access rights to get on the server
  • creating an upload form
  • code the PHP upload processor

The form and PHP code are provided, so there's no reason to worry on that count. The biggest issue is whether or not you have the FTP support compiled into your PHP installation. From there, it's just a few simple function calls away from pushing the uploaded files contents out to a remote server.

0 comments voice your opinion now!
ftp functionality compiledupload tutorial html form processor ftp functionality compiledupload tutorial html form processor


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Using a Plugin to Integrate Propel with Zend

Chance Garcia's Blog: MAMP PRO, PECL, SSH2, and OSX CLI (AKA acronym madness)

DevShed: Handling Static Data with PHP 5

JSLabs Blog: How to write an image gallery script in PHP

Evan Coury's Blog: Using Zend\Dbs TableGateway & HydratingResultSet to return rows as custom enties


Community Events





Don't see your event here?
Let us know!


tips list opinion deployment api framework podcast install voicesoftheelephpant language symfony interview bugfix release laravel introduction community library package series

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework