Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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 ???

  • #2
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    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

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •