Re: [PHP] Re: What happend to _SERVER?
thomas: my php.ini has variables_order = EGPCS. 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 [TERM]= string(5) xterm [HISTSIZE]= string(4) 1000 [QTDIR]= string(17) /usr/lib/qt-3.2.3 [OLDPWD]= string(4) /tmp [WWW]= string(35) /usr/www/atoka-software/html/family [http_proxy]= string(30) http://mesozoic.atoka.org:8080; [USER]= string(4) root [LS_COLORS]= string(440) no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35: [USERNAME]= string(4) root [MAIL]= string(24) /var/qmail/alias/Mailbox [PATH]= string(113) /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/var/qmail/bin:/root/bin [INPUTRC]= string(12) /etc/inputrc [PWD]= string(35) /usr/www/atoka-software/html/family [LANG]= string(11) en_US.UTF-8 [MAILDROP]= string(24) /var/qmail/alias/Mailbox [SHLVL]= string(1) 1 [HOME]= string(5) /root [BASH_ENV]= string(13) /root/.bashrc [LOGNAME]= string(4) root [LESSOPEN]= string(24) |/usr/bin/lesspipe.sh %s [DISPLAY]= string(4) :0.0 [QMAILMFTFILE]= string(12) /root/.lists [G_BROKEN_FILENAMES]= string(1) 1 [XAUTHORITY]= string(18) /root/.xauth0dEbWZ [_]= string(12) /usr/bin/php [PHP_SELF]= string(0) [argv]= array(1) { [0]= string(10) stuff1.php } [argc]= int(1) } --- end of stuff out -- On Saturday 14 August 2004 16:15, Hannes Magnusson pronounced: try to alter your ini file; ini_set ( variables_order, EGPCS ); var_dump ( $_SERVER ); - Hannes -- regards, allen wayne best, esq your friendly neighborhood rambler owner my rambler will go from 0 to 105 Current date: 35:15:17::226:2004 Topologists are just plane folks. Pilots are just plane folks. Carpenters are just plane folks. Midwest farmers are just plain folks. Musicians are just playin' folks. Whodunit readers are just Spillane folks. Some Londoners are just P. Lane folks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: What happend to _SERVER?
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: What happend to _SERVER?
* Thus wrote Allen Wayne Best: thomas: my php.ini has variables_order = EGPCS. 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 ); typo! 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 You are running this file locally with the php cgi binary, not through a webserver. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: What happend to _SERVER?
john: ooops! yes, i do. fixed. ran thru the web browser (no change!) fyi, the web server is apache 2.0.40-21.11 on a rh9 box. i uninstalled all php rpms, and reinstalled. no change. php-4.2.2-17.2.i386.rpm php-devel-4.2.2-17.2.i386.rpm php-imap-4.2.2-17.2.i386.rpm php-ldap-4.2.2-17.2.i386.rpm php-manual-4.2.2-17.2.i386.rpm php-mysql-4.2.2-17.2.i386.rpm php-pgsql-4.2.2-17.2.i386.rpm php-snmp-4.2.2-17.2.i386.rpm bye the way, when i view page source in mozilla, I find: htmlhead/headbody/body/html On Saturday 14 August 2004 20:28, John Holmes pronounced: 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. -- regards, allen wayne best, esq your friendly neighborhood rambler owner my rambler will go from 0 to 105 Current date: 42:55:17::226:2004 The number of Unix installations has grown to 10, with more expected. -- The Unix Programmer's Manual, 2nd Edition, June, 1972 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: What happend to _SERVER?
Allen Wayne Best wrote: ooops! yes, i do. fixed. ran thru the web browser (no change!) fyi, the web server is apache 2.0.40-21.11 on a rh9 box. I'm pretty sure you already said that a phpinfo() page resulted in no output, either. I'd say that, however you did it, PHP isn't installed correctly. Did you make the changes needed to httpd.conf for Apache to recognize PHP? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: What happend to _SERVER?
On Sat, 14 Aug 2004 18:14:48 -0700 [EMAIL PROTECTED] (Allen Wayne Best) wrote: john: ooops! yes, i do. fixed. ran thru the web browser (no change!) fyi, the web server is apache 2.0.40-21.11 on a rh9 box. i uninstalled all php rpms, and reinstalled. no change. php-4.2.2-17.2.i386.rpm php-devel-4.2.2-17.2.i386.rpm php-imap-4.2.2-17.2.i386.rpm php-ldap-4.2.2-17.2.i386.rpm php-manual-4.2.2-17.2.i386.rpm php-mysql-4.2.2-17.2.i386.rpm php-pgsql-4.2.2-17.2.i386.rpm php-snmp-4.2.2-17.2.i386.rpm bye the way, when i view page source in mozilla, I find: htmlhead/headbody/body/html That is impossible. var_dump() *ALWAYS* prints results. Insert this code into a file testing.php ?php var_dump( $_SERVER ); phpinfo ( INFO_VARIABLES ); show_source( __FILE__ ); ? - Hannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: What happend to _SERVER?
john: ah-ha! I found the problem! I change ServerSignature Off to ServerSignature On and now all is well.. Thanks everyone for chiming in :)) On Saturday 14 August 2004 21:32, John Holmes pronounced: Allen Wayne Best wrote: ooops! yes, i do. fixed. ran thru the web browser (no change!) fyi, the web server is apache 2.0.40-21.11 on a rh9 box. I'm pretty sure you already said that a phpinfo() page resulted in no output, either. I'd say that, however you did it, PHP isn't installed correctly. Did you make the changes needed to httpd.conf for Apache to recognize PHP? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- regards, allen wayne best, esq your friendly neighborhood rambler owner my rambler will go from 0 to 105 Current date: 7:7:21::226:2004 It seems a little silly now, but this country was founded as a protest against taxation. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php