Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-21-2008, 04:13 PM   PM User | #1
kabash
New to the CF scene

 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
kabash is an unknown quantity at this point
Php Error ( Help needed )

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

Code:
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

Code:
ini_set("memory_limit","12M");
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 ???
kabash is offline   Reply With Quote
Old 07-21-2008, 04:45 PM   PM User | #2
masterofollies
Senior Coder

 
Join Date: May 2005
Posts: 2,137
Thanks: 96
Thanked 72 Times in 72 Posts
masterofollies can only hope to improve
To change the memory limit for one specific script by including a line such as this at the top of the script:

Code:
ini_set("memory_limit","12M");

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:

Code:
memory_limit = 12M
masterofollies is offline   Reply With Quote
Old 07-21-2008, 06:02 PM   PM User | #3
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,292
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
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.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:38 PM.


Advertisement
Log in to turn off these ads.