php question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alex79
    Confirmed User
    • Jun 2002
    • 996

    #1

    php question

    it is possible to disable php functions (mail(),file(), etc...) from httpd.conf just for a virtual host or the disable php functions feature is possible just from php.ini ?
  • grumpy
    Too lazy to set a custom title
    • Jan 2002
    • 9870

    #2
    yes it is. But dont ask me how.
    Don't let greediness blur your vision | You gotta let some shit slide
    icq - 441-456-888

    Comment

    • alex79
      Confirmed User
      • Jun 2002
      • 996

      #3
      Originally posted by grumpy
      yes it is. But dont ask me how.
      how? serious...

      Comment

      • LiveDose
        Show Yer Tits!
        • Feb 2002
        • 25792

        #4
        Originally posted by grumpy
        yes it is. But dont ask me how.

        Really? How?

        Scammer Alert: acer19 acer [email protected] [email protected] Money stolen using PayPal

        Comment

        • grumpy
          Too lazy to set a custom title
          • Jan 2002
          • 9870

          #5
          Name Default Changeable Changelog
          SMTP "localhost" PHP_INI_ALL
          smtp_port "25" PHP_INI_ALL Available since PHP 4.3.0.
          sendmail_from NULL PHP_INI_ALL
          sendmail_path NULL PHP_INI_SYSTEM


          just change localhost to some bogus name
          Don't let greediness blur your vision | You gotta let some shit slide
          icq - 441-456-888

          Comment

          • grumpy
            Too lazy to set a custom title
            • Jan 2002
            • 9870

            #6
            i was wrong about the file()

            There is no installation needed to use these functions; they are part of the PHP core
            Don't let greediness blur your vision | You gotta let some shit slide
            icq - 441-456-888

            Comment

            • studiocritic
              Confirmed User
              • Jun 2005
              • 2442

              #7
              php_value disable_functions file,mail

              (in .htaccess, or in a virtualhost or similar container in httpd.conf)

              edit: ouch. cant use this in httpd.conf, i was going from memory...

              http://us2.php.net/manual/en/feature...able-functions

              php.ini only. enjoy.
              Last edited by studiocritic; 02-03-2006, 01:51 AM.
              254342256

              Comment

              Working...