www.webdeveloper.com
Results 1 to 3 of 3

Thread: how to set up a CONSTANT to control 'memory_limit=xxx' found in php.ini

Hybrid View

  1. #1
    Join Date
    Mar 2010
    Posts
    281

    how to set up a CONSTANT to control 'memory_limit=xxx' found in php.ini

    is it possible to do this? set up a CONSTANT that corresponds to and controls the 'memory_limit. =xxx' found in the php.ini.

    i'm in a situation where i need to increase that line but don't have access to php.ini file. it started when trying to add a column to an already very large table.

    thanks for you help

  2. #2
    Join Date
    May 2003
    Posts
    599
    If this is a hosted website, the host may not give you the ability to override the PHP.ini definitions...which I am guessing is the case if you dont have access to the actual file. But, you can always try doing an ini_set() on an external file and include that file in all the pages needed.
    We do precision guesswork

  3. #3
    Join Date
    Oct 2010
    Location
    Ohio
    Posts
    233
    Another thing to try is setting it in .htaccess
    Code:
    #format
    php_value setting_name setting_value
    
    #example
    php_value  memory_limit 16M
    ~Ryan
    www.rdennispallas.com <-- Personal Site, changing regularly cuz its ugly.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles