Re: Re: What happend to _SERVER?
| From: | John Holmes | Date: | Sun, 15 Aug 2004 03:28:16 +0000 |
| Subject: | Re: Re: What happend to _SERVER? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193854@lists.php.net to get a copy of this message | ||
Allen Wayne Best wrote:
Silly me, I forget to put $_SERVER in the print_r statement. so here is the revised file with output: ------------------- start of stuff php ---------------------- <?php print_r( $_SEVER ); var_dump( $_SERVER ) ; ?> ------------------- end of stuff php ---------------------- ------------------- start of stuff out ---------------------- X-Powered-By: PHP/4.2.2 Content-type: text/html array(30) { ["HOSTNAME"]=> string(18) "mesozoic.atoka.org" ["SHELL"]=> string(9) "/bin/bash" [snip]You still have a typo in print_r(), but either way you see the output from $_SERVER. So it exists. Now call the same script through your web server (http://youdomain/thisfile.php) and see if you get output. If you do not see anything (be sure to View Source, also), then you've got a really screwed up installation of PHP and should reinstall it. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com