The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is there a way to make php ignore ini_set ?

Discussion in 'General Discussion' started by 4u123, Jul 23, 2008.

  1. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    Hi,

    I'd like to silently ignore the ini_set command on one server - is this possible? If I disable the function, the script I'm using wont run. Its on our own server so no customers would be affected.

    Why would I want to do this?

    A script I'm using has hard coded the memory_limit variable and it is ioncube protected so I cant edit it to change the limit. The number of records pulled out of the database by the script is so many that it is forcing the hard coded memory limit to be exceeded and the script is failing.

    I need the ini_set command to be ignored by PHP rather than dissallowed so that the script can use more memory based on the limit in the server's php.ini and work correctly. Its a temporary fix until I can get in touch with the developer to make the changes to the script.

    I've had a good old search around and come up with nothing so I'm trying this forum as a last resort.
     
  2. qbert220

    qbert220 Member

    Joined:
    Feb 7, 2005
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
  3. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    Excellent, thank you I will give that a go.
     
Loading...

Share This Page