Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    May 2006
    Posts
    64

    Default What is the right way for PHP disable_functions ?

    Is it right to be :

    system, system_exec, shell, shell_exec, exec, passthru, escapeshellarg, escapeshellcmd, proc_close, proc_open, ini_alter, dl, popen, parse_ini_file, show_source


    or :


    system,system_exec,shell,shell_exec,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,dl,popen,parse_ini_file,show_source

  2. #2
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,093
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    What does the PHP manual say?

    Have you checked the syntax in your existing php.ini file?

  3. #3
    Member
    Join Date
    Mar 2006
    Posts
    378

    Default

    looks like your questions has been answered at WHT :

    http://www.webhostingtalk.com/showthread.php?t=523742
    Tweakservers | Professional Server Setup & Security Hardening
    Authorised SmarterTools Reseller, SSL Certificate & TRUSTe Privacy Policy

  4. #4
    Member
    Join Date
    May 2006
    Posts
    64

    Default

    TS thanks for the note but is this correct :


    disabled_functions = system,system_exec,shell,shell_exec,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,parse_ini_file,show_source,enable_dl,dl


    ?

    What about

    allow_url_fopen = Off

    register_globals = Off


    Thanks.

  5. #5
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Quote Originally Posted by docenta
    What about

    allow_url_fopen = Off

    register_globals = Off
    What about them?

    The comments in your main php.ini file will detail what these parameters are for, what values they can take and what the values mean. The same is explained in the PHP manual.

    About what are you unclear?

  6. #6
    Member
    Join Date
    May 2006
    Posts
    64

    Default

    is not the allow_url_fopen important function for most of PHP coders ?

Similar Threads & Tags
Similar threads

  1. php.ini disable_functions request
    By partsace in forum New User Questions
    Replies: 6
    Last Post: 06-21-2009, 09:33 PM
  2. Disabling ssh in disable_functions
    By Kh@lid in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-12-2008, 11:03 AM
  3. php safe mode on or disable_functions screwing up fantastico
    By bsasninja in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-12-2006, 12:16 PM
  4. disable_functions advise - good/bad
    By jeroman8 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-12-2005, 05:28 AM
  5. disable_functions = example
    By AbeFroman in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-16-2004, 07:30 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube