GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   php question (https://gfy.com/showthread.php?t=571605)

alex79 02-03-2006 02:37 AM

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 02-03-2006 02:44 AM

yes it is. But dont ask me how.

alex79 02-03-2006 02:49 AM

Quote:

Originally Posted by grumpy
yes it is. But dont ask me how.

how? serious...

LiveDose 02-03-2006 02:54 AM

Quote:

Originally Posted by grumpy
yes it is. But dont ask me how.


Really? How?

grumpy 02-03-2006 03:00 AM

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

grumpy 02-03-2006 03:02 AM

i was wrong about the file()

There is no installation needed to use these functions; they are part of the PHP core

studiocritic 02-03-2006 03:50 AM

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.


All times are GMT -7. The time now is 12:32 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123