Results 1 to 18 of 18
Thread: which php function?
-
07-11-2009, 11:03 AM #1I Like Beer!
- Join Date
- Sep 2008
- Location
- NL,IR
- Posts
- 1,491
which php function?
hello. i finde that in some cms it show my server os version.
and my hdd .
how can i disable them?
which my users cant see my server os and my hdd ?
i think that if i disable ini_get my users cant find which disable function i have.
and uname for os. but what about hdd?
my user can see server hdd status.
-
07-11-2009, 11:44 AM #2I Like Beer!
- Join Date
- Sep 2008
- Location
- NL,IR
- Posts
- 1,491
i find that it show my disable function. how can i disable to show my dsiable funstion on cms?
i mean which php function can show disable_function
-
07-11-2009, 02:21 PM #3Disabled
- Join Date
- Jun 2009
- Posts
- 126
I agree with nimafire that you will have to disable certain feature in php.ini file to resolve this issue.
-
07-11-2009, 04:17 PM #4Junior Guru Wannabe
- Join Date
- Jul 2009
- Location
- Charlotte, NC
- Posts
- 42
Add the following to your httpd.conf to disable your server signature:
ServerTokens Prod
ServerSignature Off
ServerTokens Prod tells Apache to only list "Apache" in the header.
-
07-14-2009, 03:18 PM #5I Like Beer!
- Join Date
- Sep 2008
- Location
- NL,IR
- Posts
- 1,491
hello. no it doesent work.its my httpd.conf:
# /var/cpanel/templates/apache2/vhost.local #
# /var/cpanel/templates/apache2/ssl_vhost.default #
# /var/cpanel/templates/apache2/ssl_vhost.local #
# #
# Templates with the '.local' extension will be preferred over templates with the '.default' extension. #
# The only template updated by the apache_conf_distiller is main.default. #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Include "/usr/local/apache/conf/includes/pre_main_global.conf"
Include "/usr/local/apache/conf/includes/pre_main_2.conf"
ServerTokens Prod
ServerSignature Off
-
07-15-2009, 06:42 AM #6I Like Beer!
- Join Date
- Sep 2008
- Location
- NL,IR
- Posts
- 1,491
no one have this probelm?
-
07-17-2009, 02:51 PM #7I Like Beer!
- Join Date
- Sep 2008
- Location
- NL,IR
- Posts
- 1,491
so i must disable ini_get to disable , show disable function on some cms?
-
07-18-2009, 05:42 AM #8PING PONG
- Join Date
- May 2009
- Location
- SLASH ROOT
- Posts
- 867
The steps mentioned by "eeg3" should work. Hope you have restarted Apache to reflect the changes.
█ WebHostRepo.com
█ Linux | Windows | VPS | Cloud
█ Outsourced Technical Support since 2009
█ sales@webhostrepo.com
-
07-18-2009, 06:00 AM #9WHT Addict
- Join Date
- Jun 2007
- Location
- San Francisco
- Posts
- 150
It has to be done on httpd.conf, not php.ini unless you disable phpinfo()
-
07-21-2009, 08:40 AM #10I Like Beer!
- Join Date
- Sep 2008
- Location
- NL,IR
- Posts
- 1,491
its my httpd.conf:
# /var/cpanel/templates/apache2/vhost.local #
# /var/cpanel/templates/apache2/ssl_vhost.default #
# /var/cpanel/templates/apache2/ssl_vhost.local #
# #
# Templates with the '.local' extension will be preferred over templates with the '.default' extension. #
# The only template updated by the apache_conf_distiller is main.default. #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Include "/usr/local/apache/conf/includes/pre_main_global.conf"
Include "/usr/local/apache/conf/includes/pre_main_2.conf"
ServerTokens Prod
ServerSignature Off
-
07-21-2009, 09:00 AM #11Web Hosting Master
- Join Date
- Sep 2007
- Posts
- 815
Try disabling phpinfo from your php.ini disable function
All things work together for the good of those who love God - Romans 8:28
-
07-21-2009, 10:14 AM #12I Like Beer!
- Join Date
- Sep 2008
- Location
- NL,IR
- Posts
- 1,491
hello
phpinfo only disable phpinfo like version , lib and ...
not disable_function
tnx
-
07-21-2009, 10:19 AM #13Web Hosting Master
- Join Date
- Sep 2007
- Posts
- 815
hello
phpinfo only disable phpinfo like version , lib and ...
not disable_function
tnx
Or go to this site: http://www.ducea.com/2006/06/15/apac...tware-version/All things work together for the good of those who love God - Romans 8:28
-
07-21-2009, 10:43 AM #14I Like Beer!
- Join Date
- Sep 2008
- Location
- NL,IR
- Posts
- 1,491
yes i want to do it.
i mean http://www.ducea.com/2006/06/15/apac...tware-version/
but after i add it.nothing do.
i have paste you my httpd.conf on my last post
-
07-21-2009, 11:02 AM #15I Like Beer!
- Join Date
- Sep 2008
- Location
- NL,IR
- Posts
- 1,491
ok. i do it and set ServerSignature Off
but i can see my disable_function list on datalife cms admin page which show
disable function on your server:
-
07-21-2009, 11:09 AM #16Web Hosting Master
- Join Date
- Sep 2007
- Posts
- 815
you mean it shows the PHP disable_function list? If yes, you can try to turn of phpinfo itself and include phpinfo in your disable_function list
All things work together for the good of those who love God - Romans 8:28
-
07-21-2009, 02:36 PM #17I Like Beer!
- Join Date
- Sep 2008
- Location
- NL,IR
- Posts
- 1,491
yes. it show which function i have add on disable_function on php.ini
no.
phpinfo cant do it.
-
07-22-2009, 05:28 PM #18I Like Beer!
- Join Date
- Sep 2008
- Location
- NL,IR
- Posts
- 1,491
and ... ?
can an one help me? i am waiting for you
Similar Threads
-
what is the function of ....
By rs2host in forum Hosting Security and TechnologyReplies: 4Last Post: 08-19-2008, 01:28 AM -
Is there a magic function/trick in PHP to get the function name of the calling func?
By grabmail in forum Programming DiscussionReplies: 1Last Post: 03-15-2006, 02:19 AM -
subdomain function in raq server .... the function is useless
By hkivan in forum Dedicated ServerReplies: 1Last Post: 10-05-2003, 01:23 PM -
PM function
By hooter in forum WHT Announcements, Feedback and QuestionsReplies: 2Last Post: 07-04-2003, 01:10 AM -
Need Help With Function
By CChard in forum Programming DiscussionReplies: 3Last Post: 02-23-2003, 10:23 PM