Douglas Robson schrieb:
Ausgezeichnet! Danke sehr.
Sie lösten meine zweite Echoaussage Störung.
Sie sind sehr nützlich gewesen.
Jedoch arbeitet mein erstes Problem noch nicht. $result = getenv($_ENV['DOCUMENT_ROOT' ]); kann jeden möglichen Ausgang produzieren, wenn nicht
ich versuche widerzuhallen $result.
The above was AltaVista.com's babelfish translation.
Please excuse if it is not helpful.
The German is a little bit strange. BTW:
'Sie sind sehr nützlich gewesen.' has a bad annotation Correct would have been 'Sie sind sehr hilfreich gewesen.'.
Since I know about the limitation of babelfish I don't mind, but others could feel being offended ( I hope this correct english).
In English, I thank you for correcting one of my problems. However, the attempt to evaluate the superglobal, $_ENV['DOCUMENT_ROOT'], seems not to put anything into the variable, $result. No output results from the "echo $result" statement.
Could you educate me concerning the proper use of the superglobals?
Thank you very much, Doug
$_ENV['DOCUMENT_ROOT'] is false, you must use $_SERVER['DOCUMENT_ROOT'] .
You cann see this yourself, if you look at the output of phpinfo().
So the correct line would be :
$result = $_SERVER['DOCUMENT_ROOT' ];
You mustn't use getenv() for the values of $_ENV .
Hendrik