note 58297 added to function.printf
| From: | StaNex at Shaw dot ca | Date: | Sun, 30 Oct 2005 22:45:36 +0000 |
| Subject: | note 58297 added to function.printf | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-97845@lists.php.net to get a copy of this message | ||
Here's a good 1 line snippet that will tell you all your Apache variables. Yes, I said Apache..
It might work with some other HTTPd with PHP installed, but I doubt it..
<?PHP
print_f ($GLOBALS);
?>
Obviously most of you already know about this, but it's useful..
Also, make sure you use this where it is NOT ACCESSIBLE BY THE PUBLIC, as this does store passwords
and yeah..
Enjoy!
----
Manual Page -- http://www.php.net/manual/en/function.printf.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58297
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58297&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58297&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58297&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58297&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58297&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58297&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58297&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58297&report=yes
Search -- http://master.php.net/manage/user-notes.php