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
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
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:
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
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
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
- 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:
Janet and Miles, Thank you for your suggestions.
Here is more information for you.
I am running:
Fedora core 5 Linux
php 5.14
apache 2.2.2
mysql 5.0.22
I have added the mysql_error code to my script as you suggested.
I already knew the what the error was by looking in the error
I had a similar problem the other day I think. plus many permission
problems. But I got it work.
I added these two lines to the bottom of my /etc/my.cnf file
[client]
socket=/usr/local/mysql/mysql.sock
Just put in the path to your sock file and see if that helps.
ROGER DEBRY wrote:
ROGER DEBRY wrote:
Janet and Miles, Thank you for your suggestions.
Here is more information for you.
I am running:
Fedora core 5 Linux
php 5.14
apache 2.2.2
mysql 5.0.22
I have added the mysql_error code to my script as you suggested.
I already knew the what the error was by
10 matches
Mail list logo