Jump to content

big size affects file put content?


asmith

Recommended Posts

Hi,

 

I'm doing something like this to get some data from some files :

 

<?php
$neededData = substr(current(explode('FFFFFFFF',substr(bin2hex(file_get_contents('file.ext')),36))),0,-80);
?>

 

It works fine with small sizes, like 200kb . But when I try a file with 1.4 mb  it just fails. says nothing and fails.

 

Any idea?

 

Link to comment
https://forums.phpfreaks.com/topic/157578-big-size-affects-file-put-content/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.