Forum Moderators: mack

Message Too Old, No Replies

How to have a page that calls phpinfo( )?

phpinfo webpage

         

SymbioticDesign

2:03 am on Dec 29, 2003 (gmt 0)

10+ Year Member



I realize that if do this, I shouldn't make it public, but I have run into several websites which require that I show them a phpinfo( ) page (for php application installations, etc...).

How would I set up something like this?

What are the consequences if it isn't kept secret and the resulting information is misused? (Would I be hacked?)

Thank you... Doug Peters

dmorison

2:30 am on Dec 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have run into several websites which require that I show them a phpinfo( ) page (for php application installations, etc...).

Never heard of that before (are you looking to have your PHP app hosted by somebody else; or what?); but I assume it just involves putting a script on your server with a call to phpinfo(); something like:

<?php

phpinfo();

?>

If you call the script phpinfo.php don't forget to delete it afterwards like 14,499 people haven't [google.com] :)

SymbioticDesign

2:49 am on Dec 29, 2003 (gmt 0)

10+ Year Member



Thanks! I apprecitae it.

-DP (SymbioticDesign)