News Feed
Sections




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

ThinkPHP Blog:
Handling large files with(out) PHP
August 02, 2006 @ 05:47:06

On the ThinkPHP blog today, there's a quick hint about dealing with larger files both with and whithout PHP.

As one man was quoted "640K of memory should be enough for anybody" no one will need to access more than 2 GB data. What happens if you - just for scientific reasons of course - try to access larger files using your 32bit hardware and your favorite programming language PHP?

They give the example of opening a large 2 gig file with PHP and the resulting error that would pop up. They try a few differnt ways before getting down to more of a non-PHP PHP solution (yes, you read that right). They decided, instead, to create a script to work with the file chunked, using an exec() call to the unix split command to break it up.

0 comments voice your opinion now!
file handling large fopen error split chunk exec file handling large fopen error split chunk exec


blog comments powered by Disqus

Similar Posts

WebReference.com: How to Interact with Web Forms (Part 2)

Gonzalo Ayuso: Building a Silex application from one Behat/Gherkin feature file

Vidyut Luther\'s Blog: Difference between \"require()\" and \"include()\" in PHP

Alvaro Videla's Blog: Integrating Facebook Hive with Symfony

SitePoint PHP Blog: PHP to the Rescue!


Community Events

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


introduction library release framework development language laravel interview api video php7 extension unittest laravel5 opinion series version community voicesoftheelephpant podcast

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