castor_troy Posted July 29, 2008 Share Posted July 29, 2008 I have a PHP script that creates a tar file of an entire directory. It works for most directories. However, when I tried running the script on a really large directory, It stopped working after tar file reached (1 958 010 880) in size. And apparently, it doesn't go to the next line which is supposed to gzip the tar file. Question: Is this a limitation of the system? Can it be overriden? Link to comment https://forums.phpfreaks.com/topic/117087-tar-size-limitation/ Share on other sites More sharing options...
monkeypaw201 Posted July 29, 2008 Share Posted July 29, 2008 Not being an expert here.. i but i would say its a resource issue, that the script runs out of resources and dies.. Link to comment https://forums.phpfreaks.com/topic/117087-tar-size-limitation/#findComment-602221 Share on other sites More sharing options...
castor_troy Posted July 29, 2008 Author Share Posted July 29, 2008 Not being an expert here.. i but i would say its a resource issue, that the script runs out of resources and dies.. any way to fix the script? btw, my script has set_time_limit(0); in the first line. Link to comment https://forums.phpfreaks.com/topic/117087-tar-size-limitation/#findComment-602222 Share on other sites More sharing options...
btherl Posted July 29, 2008 Share Posted July 29, 2008 Can you post the script? Or a smaller script that replicates the problem. Link to comment https://forums.phpfreaks.com/topic/117087-tar-size-limitation/#findComment-602359 Share on other sites More sharing options...
jaymc Posted July 29, 2008 Share Posted July 29, 2008 Make sure you are outputting all PHP errors It may be a memory issue Link to comment https://forums.phpfreaks.com/topic/117087-tar-size-limitation/#findComment-602442 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.