Zephni Posted April 5, 2011 Share Posted April 5, 2011 Rage. The whole error message reads: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 16 bytes) Dunno bout you but that doesn't make sense to me! Anywho I am constantly getting this error when any PHP variables are stored or anything. I'm guessing thats the case coz its saying the error is on line 6 which is: $card = rand(1,52); I tried a search on google but just got confused, is there a simple explanation why this is happening? thanks alot guys Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted April 5, 2011 Share Posted April 5, 2011 Your code either contains a logic error that is causing it to loop forever, thereby taking up all available memory or you are doing something that consumes a huge amount of memory and you either need to optimize/manage the available memory or allocate more memory. In any case, you would need to post your code that duplicates/reproduces the problem for anyone here to be able to specifically help you with what you are doing in your code that is causing this problem. Quote Link to comment Share on other sites More sharing options...
Zephni Posted April 5, 2011 Author Share Posted April 5, 2011 Oooops lol. I made a faulty for loop by spelling the $counter wrong in the params, so it went on forever, thanks Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted April 5, 2011 Share Posted April 5, 2011 Developing and debugging your code with error_reporting set to E_ALL will generally help point out things like typos and mismatched variable names. Quote Link to comment 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.