MadnessRed Posted January 7, 2009 Share Posted January 7, 2009 Hi, my php script is over-running the memory allowance and failing because of that. Is there any way to have an array with billions of value in it for less memory usage? If not I have heard that it is possible to use c++ and run it via php, how would that be done? Link to comment https://forums.phpfreaks.com/topic/139875-reduce-memory-useage/ Share on other sites More sharing options...
kenrbnsn Posted January 7, 2009 Share Posted January 7, 2009 Why do you need an array will billions of values? Perhaps it's time to rethink your design and use a database. Ken Link to comment https://forums.phpfreaks.com/topic/139875-reduce-memory-useage/#findComment-731830 Share on other sites More sharing options...
DarkSuperHero Posted January 7, 2009 Share Posted January 7, 2009 are you having sam rpoblem as this post ? http://www.phpfreaks.com/forums/index.php/topic,233036.0.html Link to comment https://forums.phpfreaks.com/topic/139875-reduce-memory-useage/#findComment-731863 Share on other sites More sharing options...
MadnessRed Posted January 7, 2009 Author Share Posted January 7, 2009 ye, my function is a battle engine, and each item needs to be lists separately and have its own bit of into saying how much it has left, the database useage is interesting though, I will try that, thanks for the idea. Link to comment https://forums.phpfreaks.com/topic/139875-reduce-memory-useage/#findComment-731895 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.