SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: safe_mode

  1. #1
    SitePoint Guru phantom007's Avatar
    Join Date
    May 2008
    Posts
    736
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Question safe_mode

    Hi

    Even when I have set the "safe_mode = On" in my server's php.ini file, how come my user is still able to change the settings in their php page using ini_set() function?

    Is there anyway to stop them from changing values using ini_set()?

    Thanks

  2. #2
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    safe_mode only affects these settings:

    http://www.php.net/manual/en/feature....functions.php

    If you want to remove a specific function so that your users cannot reset it, then try adding it to the disable_functions directive in your ini file.

    safe_mode is deprecated from 5.3 and removed from 5.4

  3. #3
    SitePoint Guru phantom007's Avatar
    Join Date
    May 2008
    Posts
    736
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the explanation.

    Cheers!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •