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
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
> >> >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
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
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
> >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
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
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
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
9 matches
Mail list logo