Re: How can I replace $_SERVER["DOCUMENT_ROOT"] in PHP 7.0?

[email protected] (James Moe)
Newsgroups php.general
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.