Tuesday, July 28, 2009

Helpful Simple PhP Scripts to List Server Info, Request Info, Request Headers, etc.

David E. wrote some simple scripts that we still have on our dev server, which are still useful one-liners:

Print out PhP version, etc.:

<? phpinfo(); ?>

Print out lots of info (SSL info/cert info, headers, ip and request info):

<pre><? print_r($_SERVER); ?></pre>

Print out request headers: (especially useful for debugging shibboleth issues)

<pre><? print_r(apache_request_headers()); ?></pre>

No comments: