RE: [PHP] Why is this happening

2004-03-08 Thread Martin Towell
have you got register_globals turned on or off? Martin > -Original Message- > From: Bryan Bateman [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 9 March 2004 12:25 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Why is this happening > > > This does not work: > requi

[PHP] Why is this happening

2004-03-08 Thread Bryan Bateman
This does not work: require('languages/' . $language . '/' . basename($PHP_SELF)); This does: require('languages/' . $language . '/' . basename($_SERVER['PHP_SELF']); Why -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Why is this happening

2001-04-18 Thread Boget, Chris
> >> >Ok, I found out what the problem was. I'm still curious > >> >why the problem is occuring. > >> >> if( $tmpArray[errorNumber] & $typesToDisplay ) { > >> you're using the bitwise & when you want the logical && > >No, I actually wanted to use the bitwise &. I wanted to see > >if the "error

Re: [PHP] Why is this happening

2001-04-17 Thread Justin Farnsworth
Some time ago, if I remember correctly, this question was asked. Rasmus replied that the interpreter, due to its mechanization, would interpret "raw" strings as strings in associative arrays but that THIS BEHAVIOUR WAS NOT GUARANTEED IN THE FUTURE. It had something to do with the symbol table me

RE: [PHP] Why is this happening

2001-04-17 Thread Mark Maggelet
On Tue, 17 Apr 2001 16:06:47 -0500, Boget, Chris ([EMAIL PROTECTED]) wrote: >> >Ok, I found out what the problem was. I'm still curious >> >why the problem is occuring. >> >> if( $tmpArray[errorNumber] & $typesToDisplay ) { >> you're using the bitwise & when you want the logical && > >No, I actua

RE: [PHP] Why is this happening

2001-04-17 Thread Boget, Chris
> >Ok, I found out what the problem was. I'm still curious > >why the problem is occuring. > >> if( $tmpArray[errorNumber] & $typesToDisplay ) { > you're using the bitwise & when you want the logical && No, I actually wanted to use the bitwise &. I wanted to see if the "errorNumber" was in $t

RE: [PHP] Why is this happening

2001-04-17 Thread Mark Maggelet
On Tue, 17 Apr 2001 15:55:38 -0500, Boget, Chris ([EMAIL PROTECTED]) wrote: >Ok, I found out what the problem was. I'm still curious >why the problem is occuring. > >> if( $tmpArray[errorNumber] & $typesToDisplay ) { // line to >>comment out you're using the bitwise & when you want the logical

RE: [PHP] Why is this happening

2001-04-17 Thread Boget, Chris
Ok, I found out what the problem was. I'm still curious why the problem is occuring. > if( $tmpArray[errorNumber] & $typesToDisplay ) { // line to comment out I almost always access associative arrays like the above - almost never without the quotes. IE $there = 5; echo "$this[that]\n"; ech

[PHP] Why is this happening

2001-04-17 Thread Boget, Chris
I've got the following code: --- while( list( $timeStamp, $elementArray ) = each( $this->ErrorMessages )) { $tmpArray = $elementArray; if( $tmpArray[errorNumber] & $typesToDisplay ) { // line to comment out while( list( $elementKey, $elementValu