We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24068
    • 4 Posts
    Hello,

    i run modx on a shared server and i have to set php-ini-vars for all php-scripts of modx.

    To change php-ini-vars i can


    • place a php.ini in the working directory of the php-script
    • change it directly inside the script via ini_set(..)

    Opt one is a real mess, as i have to place a php.ini-file in every directory that contains php-files called by the browser.

    So i should use ini_set().
    But where should i place it?

    I searched an event i can hook to, an event that is guaranteed to be fired on every creation of an modx-instance.
    I didn’t find one, one that lets me relax strict-warnings before they apear.

    Does modx provide a way to change php-ini-vars?
    Any other suggestions beside the "call your host"-advice?

    (Change php-ini-vars via .htaccess is not possible.)

    And yes, its that strict-warning about date.timezone that bugs me. And i realy don’t want to hack that away.

    Thanks in advance,

    Oliver.
      • 24068
      • 4 Posts
      I am placing the ini_set()s to core/config/{configkey}.inc.php