HomePHP 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.
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.