Re: Listing Declared Variables
| From: | Sebastian Delmont | Date: | Tue, 06 May 2003 22:49:28 +0000 |
| Subject: | Re: Listing Declared Variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146588@lists.php.net to get a copy of this message | ||
Unless you are using a very old version of PHP, you can try with:
print_r($GLOBALS);
Is there an easy way to list the declared variables in a PHP file? I am trying to use the GeoIP PHP script (http://www.maxmind.com) on an existing PHP page. I can use the PHP script on any new pages I create but my existing pages cause the GeoIP include to fail to return any results. I am guessing I have some sort of conflict where I am resetting a variable that GeoIP uses. I just want to quickly compare the defined variables on the GeoIP include with the ones in my existing PHP file with out hunting line by line. Thanks, Dan