Forum Moderators: coopster

Message Too Old, No Replies

getting phpinfo to come up on any page

         

bobnew32

5:36 am on Aug 16, 2004 (gmt 0)

10+ Year Member



Isn't there a variable you can put in the url to make the phpinfo page showup on the current page your viewing?

Warboss Alex

6:12 am on Aug 16, 2004 (gmt 0)

10+ Year Member



Calling phpinfo() in an include file on every page should do it ..

Or else buffer the info in the include file into a variable, and then call the variable wherever you want on your other pages.

ergophobe

2:33 pm on Aug 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




Isn't there a variable you can put in the url to make the phpinfo page showup on the current page your viewing?

You could set up a site that would do this, but you would be giving away an awful lot of info to hackers.

Typically, I set a constant called "DEBUG" which is defined in an include along with other server-specific variables. If set to true, I get all sorts of info out, perhaps including phpinfo() output, but it is only set to true briefly if ever on a live server while actively debugging.

Tom