1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Can i enable exec() for some PATH while it is globally disabled?

Discussion in 'PHP' started by postcd, Dec 8, 2016.

  1. #1
    Hello,

    i have some globally disabled functions set in global php.ini, like:
    and when i want to enable some function for some path, i add to the end of global php.ini:
    So for example scripts in /home/user2/public_html will be allowed to use symlink php function even it is globally disabled.

    So it works, but exec() function is an exception, it can not be enabled for my defined paths while it is globally disabled.

    Any workaround to allow it for some PATH and its subdirectories while it is globally disabled?
     
    Last edited: Dec 8, 2016
    postcd, Dec 8, 2016 IP
  2. postcd

    postcd Well-Known Member

    Messages:
    1,037
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    190
    #2
    Last edited: Dec 9, 2016
    postcd, Dec 9, 2016 IP
  3. ThePHPMaster

    ThePHPMaster Well-Known Member

    Messages:
    737
    Likes Received:
    52
    Best Answers:
    33
    Trophy Points:
    150
    #3
    The only solution I can think of would be to create another instance of PHP for that allows it.
     
    ThePHPMaster, Dec 9, 2016 IP