how to disable exit() function from my localhost configuration

Discussion in 'PHP' started by crazy.works, Apr 20, 2011.

  1. #1
    i have encoded php script which i can't read/edit, in it some exit() or die() functions.. so i have to disable exit() and die() from my localhost to be able to display all the data from the script... so how can i get this done on my localhost configuration ???
     
    crazy.works, Apr 20, 2011 IP
  2. crazy.works

    crazy.works Peon

    Messages:
    304
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    any ideas?
     
    crazy.works, Apr 21, 2011 IP
  3. x319

    x319 Well-Known Member

    Messages:
    90
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #3
    Yea, you can edit the php.ini file - look at disable_functions.

    Google if you need more help ;)
     
    x319, Apr 21, 2011 IP
  4. subdivisions

    subdivisions Well-Known Member

    Messages:
    1,021
    Likes Received:
    40
    Best Answers:
    1
    Trophy Points:
    145
    #4
    If you can get this to run in your script:

    ini_set('disable_functions', 'exit, die');
    PHP:
     
    subdivisions, Apr 25, 2011 IP