View Full Version : Php Error ( Help needed )

07-21-2008, 05:13 PM
Hey guys,

i recently purchased this script http://www.phpmyrealty.com and i installed it on our shared server on 1 and 1 hosting but i get this error

Fatal error: Allowed memory size of 524288000 bytes exhausted (tried to allocate 2036429426 bytes) in /homepages/45/d22134582/htdocs/87898964dgf/includes/filter.php on line 2

Since i dont have access to the php.ini i figured i can create one and drop it in our root with this line in it


but this did not help , opened up the PHP file that requires more memory, and added a line below just after ini_set(’memory_limit’, ‘12M’);
Same thing...no go!!

got a .htaccess in the root, and added a line that looks like below.
php_value memory_limit 12M

None helped.....anybody got any pointers ???

07-21-2008, 05:45 PM
To change the memory limit for one specific script by including a line such as this at the top of the script:


The 12M sets the limit to 12 megabytes (12582912 bytes). If this doesn't work, keep increasing the memory limit until your script fits or your server squeals for mercy.

You can also make this change permanently for all PHP scripts running on the server by adding a line like this to the server's php.ini file:

memory_limit = 12M

07-21-2008, 07:02 PM
I've had a similar issue. I needed to install Moodle on my server but I didn't have a large enough memory limit. I tried all kinds of ways to increase it. But because php is running as a module I couldn't. I needed to contact my host and they changed it for me.