[PHP-DB] use of undefined constant

2006-10-26 Thread Zbigniew Szalbot
Hello, I am using PHP 5.1.6 (cli) and MySQL 5.1.11-beta on a FreeBSD 6.1 stable release. I am trying to make a custom database program work in this environment. I have it working under MS Windows XP Pro with MySQL 5.0.19-nt and php 4.3.10. It seems everything is in order. A logging window

Re: [PHP-DB] use of undefined constant

2006-10-26 Thread Chris
Zbigniew Szalbot wrote: Hello, I am using PHP 5.1.6 (cli) and MySQL 5.1.11-beta on a FreeBSD 6.1 stable release. I am trying to make a custom database program work in this environment. I have it working under MS Windows XP Pro with MySQL 5.0.19-nt and php 4.3.10. It seems everything is in

Re: [PHP-DB] use of undefined constant

2006-10-26 Thread Zbigniew Szalbot
Hello again, On Thu, 26 Oct 2006, Chris wrote: In the error log I can see this: Use of undefined constant is_admin - assumed 'is_admin' in /path_to_file. I bet you have something like: $GLOBALS[is_admin] You need quotes around that, or else (as you've seen) php thinks it's a constant:

Re: [PHP-DB] use of undefined constant

2006-10-26 Thread Chris
Zbigniew Szalbot wrote: Hello again, On Thu, 26 Oct 2006, Chris wrote: In the error log I can see this: Use of undefined constant is_admin - assumed 'is_admin' in /path_to_file. I bet you have something like: $GLOBALS[is_admin] You need quotes around that, or else (as you've seen) php

Re: [PHP-DB] use of undefined constant

2006-10-26 Thread Zbigniew Szalbot
Hello again, On Thu, 26 Oct 2006, Chris wrote: You'll need to change: $PHP_AUTH_USER to $_SERVER['PHP_AUTH_USER'] and $PHP_AUTH_PW to $_SERVER['PHP_AUTH_PW'] The former variables are ok before 4.2.0 (where register_globals was off by default I think) but now they have moved to the

Re: [PHP-DB] use of undefined constant

2006-10-26 Thread Chris
Zbigniew Szalbot wrote: Hello again, On Thu, 26 Oct 2006, Chris wrote: You'll need to change: $PHP_AUTH_USER to $_SERVER['PHP_AUTH_USER'] and $PHP_AUTH_PW to $_SERVER['PHP_AUTH_PW'] The former variables are ok before 4.2.0 (where register_globals was off by default I think) but now they

Re: [PHP-DB] use of undefined constant

2006-10-26 Thread [EMAIL PROTECTED]
- Original Message - From: Chris [EMAIL PROTECTED] To: Zbigniew Szalbot [EMAIL PROTECTED] Cc: php-db@lists.php.net Sent: Thursday, October 26, 2006 9:41 AM Subject: Re: [PHP-DB] use of undefined constant Zbigniew Szalbot wrote: Hello again, On Thu, 26 Oct 2006, Chris wrote