Home arrow PHP arrow Page 2 - How to Split a File During an FTP Upload Using PHP

Inside the Split Folder Directory - PHP

One of the known limitations of free hosting packages is the file upload limit. For example, some hosting companies set an upload limit of 500 KB. This means that for any uploads to the FTP server, the file should not be more than 500 KB or else the server won’t accept it and you will not be able to upload your file. Fortunately, by splitting your files, you can get around this limitation; this two-part tutorial series will show you how.

TABLE OF CONTENTS:
  1. How to Split a File During an FTP Upload Using PHP
  2. Inside the Split Folder Directory
  3. PHP File Splitting Script: splitthisfile.php
  4. Using the File Splitting Function
By: Codex-M
Rating: starstarstarstarstar / 3
November 17, 2009

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

The split file directory should consist of two important files before file splitting process:

  • The PHP file splitting script (named "splitthisfile.php" in this tutorial).
  • The file to be split.

After the file is split, it will be broken down into chunks or fragments. See the screenshot of the file changes inside the "split file" directory after the split. By the way, if you are using Windows and have installed XAMPP in the root of drive C, the path of "split file" directory should be:

C:xampphtdocssplitfolder

Based on the above screenshot, the file to be split is "GeoIP.dat." You can split any type of large file.



 
 
>>> More PHP Articles          >>> More By Codex-M
 

blog comments powered by Disqus
   

PHP ARTICLES

- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...
- PHP: Building Concrete Validators
- Sanitizing Input with PHP
- Executing Shell Commands with PHP
- Handling File Data with PHP
- File Security and Resources with PHP
- ArrayObject PHP Class Examples
- ArrayObject PHP Class: An Introduction
- Getting File System Data with PHP
- PHP Tools for Working with the File and Oper...
- Working with the File and Operating System w...
- PHP Proxy Patterns: Completing a Blog


© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 11 - Follow our Sitemap

Dev Shed Tutorial Topics: