View Full Version : How To: mail() in php - Disablement ?
cdedicated
01-08-2004, 10:36 AM
How To: mail() in php - Disablement ?
I would like to disable "mail() in php" in order to prevent spamming from our server.
How do i able to do this?
Thanks a lot
CDedicated.com
l0rdphi1
01-08-2004, 11:18 AM
Haven't tried this, but in php.ini there is this setting:
; This directive allows you to disable certain functions for security reasons.
disable_functions =
So you ought to change that to:
disable_functions = mail?
ProWebUK
01-08-2004, 11:21 AM
looks like that may work....
restart apache after making chnages also.
Chris
cdedicated
01-08-2004, 11:25 AM
where is this file?
and in which line should i add this command?
l0rdphi1
01-08-2004, 11:33 AM
Originally posted by cdedicated
where is this file?
and in which line should i add this command? Should be /usr/local/lib/php.ini
If you use vi, you can
:find disable_functions to locate the right spot.
cdedicated
01-08-2004, 11:37 AM
done ,i hope every thing will work fine :)
i restarted apache:
root@sv31 [~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [Thu Jan 8 21:33:57 2004] [warn] module perl_module is already loaded, skipping
[ OK ]
ProWebUK
01-08-2004, 11:47 AM
As i mentioned to you earlier, the perl error is nothing to worry about :)
Chris
cdedicated
01-08-2004, 11:48 AM
Originally posted by ProWebUK
As i mentioned to you earlier, the perl error is nothing to worry about :)
Chris
Yeh i know :)
I just showd the results of what i did :)
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.