Welcome to WebmasterWorld Guest from 54.145.222.231

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

strange file on server - phpinfo.php

can someone explain

   
4:46 pm on Jan 24, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



One of my clients just found a phpinfo.php file on his server that shouldn't be there. I don't read php. Can someone tell me what this file does?

<?
phpinfo();
?>

5:11 pm on Jan 24, 2008 (gmt 0)

5+ Year Member



its a stadard bit of code that displays the php config on the site may be a develper put it there?

if there is no development going on then id start to double chck my logs and the site just to make sure the site hasnt been hacked.

7:02 pm on Jan 24, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks,

There is development going on by someone what isn't totally trusted so thanks for explaining.

8:25 pm on Jan 24, 2008 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



[php.net...]

Outputs a large amount of information about the current state of PHP. This includes information about PHP compilation options and extensions, the PHP version, server information and environment (if compiled as a module), the PHP environment, OS version information, paths, master and local values of configuration options, HTTP headers, and the PHP License.

Because every system is setup differently, phpinfo() is commonly used to check configuration settings and for available predefined variables on a given system.

phpinfo() is also a valuable debugging tool as it contains all EGPCS (Environment, GET, POST, Cookie, Server) data.

9:07 pm on Jan 24, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for the added info.
10:40 pm on Jan 24, 2008 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



just a question

why would you have someone that isn't trusted develop something?

seems odd