Allowed memory size error??? I don't know why its doing this ~_~

Marlboro20

Member
Dec 17, 2013
37
6
Hey guys i am trying to make a shopping cart script and i barley started but this is what i have so far and the error its giving me but i am not sure why i am receiving it. when i added a unitialized variable the script freaked out and looked like it was in a never ending loop :/

Here is the error:
Code:
PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 65488 bytes) in E:\ShoppingCart\app\config\parser.php on line 35

Here is my code so far.
/index.php

/app/bootstrap.php

/app/autoload.php

/app/database.php

/app/config/parser.php

/app/config/app.ini

Any help or tips would be useful :<
 

Ecko

23:37 [autobots] -!- eckostylez [[email protected]]
Nov 25, 2012
1,398
962
Well i was thinking changing the memory_limit with ini_set() function to improve portability :s

Also know i get this error
Code:
PHP Fatal error: Maximum execution time of 30 seconds exceeded
Now increase max_execution_time

None of these are proper fixes for fixing your script though

Using ini_set is not a way to improve portability. Most hosts block you from modifying php.ini settings like that (most should be using suPHP now and allow you to use custom php.ini files on a per directory basis)
 

Users who are viewing this thread

Top