You are here:  » Processing time for large file


Processing time for large file

Submitted by bayuobie on Sat, 2012-05-19 16:17 in

I wanted to ask for help on which is the best implementation for large files. Should I download the file using cURL OR file_get_contents to my local server and then use magicparser to process or you recommend supplying the url to the 20mb file to magicparser directly? Which one is more efficient?

Thank you for your help.

Submitted by support on Tue, 2012-06-19 08:28

Hi,

For very large files using file_get_contents could possibly cause out of memory problems; so I would actually suggest simply passing the URL as the filename parameter to MagicParser_parse() and that should do the trick..

Cheers,
David
--
MagicParser.com