Re: How can I replace $_SERVER["DOCUMENT_ROOT"] in PHP 7.0?
| From: | James Moe | Date: | Tue, 14 Sep 2021 21:18:39 +0000 |
| Subject: | Re: How can I replace $_SERVER["DOCUMENT_ROOT"] in PHP 7.0? | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-327686@lists.php.net to get a copy of this message | ||
On 2021-09-14 00:57, Bo Berglund wrote:
> Running with PHP 7.0.33 I have tested with the following script located in
> .../htdocs/log and with other php files in .../htdocs/php:
>
How are you running the script? Using "php -f"? Or from a web page? Is this on
a local host? Or at a provider's site? Is "/usr/services/vux" an alias or
symbolic link for "/data/25/2/158/91/2484743/user/2721122"?
I have also been using $_SERVER["DOCUMENT_ROOT"] for web pages fi=or many
years. There was no problem at all with the transition from php 5.x to 7.x. I
suspect something else that is causing the change of string responses.
--
James Moe
jmm-list at sohnen-moe dot com
Think.