Guardian-Mage Posted November 27, 2008 Share Posted November 27, 2008 How might I go about executing a 2.4 gig php file? It contains the encoded version of an entire directory structure. The script is designed to unpack and recreate this directory structure. No I can't do it any other way. I need to use this file. Any suggestions? I get the following error when trying to run the file directly Warning: Unknown: failed to open stream: Value too large for defined data type in Unknown on line 0 Fatal error: Unknown: Failed opening required '/home2/codespin/public_html/openaurora.org/file.php' (include_path='.:/opt/lampp/lib/php') in Unknown on line 0 Quote Link to comment https://forums.phpfreaks.com/topic/134452-executing-a-2-gig-php-file/ Share on other sites More sharing options...
awpti Posted November 27, 2008 Share Posted November 27, 2008 Yeah. A non-32bit OS and PHP Compiled and designed specifically to handle files greather than 2.4GB in size. Might be smarter to try two or more files (one calls the other). I can't imagine any scenario where this type of situation would be required. I smell bad design process. Quote Link to comment https://forums.phpfreaks.com/topic/134452-executing-a-2-gig-php-file/#findComment-700018 Share on other sites More sharing options...
Guardian-Mage Posted November 27, 2008 Author Share Posted November 27, 2008 I have 64 bit os, and this was a one time thing. This was the only solution. Quote Link to comment https://forums.phpfreaks.com/topic/134452-executing-a-2-gig-php-file/#findComment-700023 Share on other sites More sharing options...
Prismatic Posted November 27, 2008 Share Posted November 27, 2008 Why can't you just read in a certain number of bytes at a time? Quote Link to comment https://forums.phpfreaks.com/topic/134452-executing-a-2-gig-php-file/#findComment-700233 Share on other sites More sharing options...
Mchl Posted November 27, 2008 Share Posted November 27, 2008 Tarballing. You're doing it wrong. Seriuosly. I'd like to know how did you end up with having to go with this solutuion. ??? Quote Link to comment https://forums.phpfreaks.com/topic/134452-executing-a-2-gig-php-file/#findComment-700234 Share on other sites More sharing options...
laffin Posted November 27, 2008 Share Posted November 27, 2008 Musta worked at MS for some time, ya know MS only believes in bloat bloat and more bloat.... Quote Link to comment https://forums.phpfreaks.com/topic/134452-executing-a-2-gig-php-file/#findComment-700236 Share on other sites More sharing options...
Guardian-Mage Posted November 27, 2008 Author Share Posted November 27, 2008 I actually found and a solution thanks. Everything on the server was disabled. NO system commands, shell commands, no zip, tar, etc libs, and the final file had to be just that. One file. Quote Link to comment https://forums.phpfreaks.com/topic/134452-executing-a-2-gig-php-file/#findComment-700298 Share on other sites More sharing options...
Mchl Posted November 27, 2008 Share Posted November 27, 2008 Wicked... Quote Link to comment https://forums.phpfreaks.com/topic/134452-executing-a-2-gig-php-file/#findComment-700304 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.