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

[email protected] (AllenJB)
Newsgroups php.general
Message-ID <[email protected]>
> Does it matter if I use
> $_SERVER["DOCUMENT_ROOT"] rather than
> $_SERVER['DOCUMENT_ROOT']
>
> In the code I am struggling with it uses double quotes rather than single quotes
> as you show here,

No. There's no practical difference between single and double quotes here.

The only difference between single and double quotes is that double 
quotes allow the use of variables and escape sequences (single quoted 
strings only parse the \\ and \' escape sequences)

See: https://www.php.net/manual/en/language.types.string.php
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.