Re: Possible 4.02 bug?
| From: | John McKown | Date: | Mon, 04 Sep 2000 05:24:55 +0000 |
| Subject: | Re: Possible 4.02 bug? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-15058@lists.php.net to get a copy of this message | ||
Well, I'm rather new at PHP, but I found that either of the following will
work
$pth=$DOCUMENT_ROOT.$PHP_SELF;
$pth="$DOCUMENT_ROOT$PHP_SELF";
However, using the "." as a concatenation operator within double quotes
does not work. It shows up as a literal "." Apparently, within double
quotes, simple abutment will work as concatenation. I don't know if this
is a bug of not. No offense, but I don't intend to revert to 4.01pl2 to
check out if either or both of the above work.
John
On Mon, 4 Sep 2000 kevin@oceania.net wrote:
> The following code works in 4.01pl2
> but gives an error in 4.02 sorry I could
> not give error messages as I had to very
> quickly delete 4.02 and reinstall 4.01
>
>
>
> $pth = dirname("$DOCUMENT_ROOT.$PHP_SELF");
> $d = dir($pth);
>
> gives error on the first line
>
> Kevin
>
>