[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
[an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]![]() |
![]() |
![]() |
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||||
![]() |
![]() |
![]() |
Lars Riisgaard Ribe wrote: klip
<?php print("SERVER PHP_SELF = $_SERVER['PHP_SELF']<br>");?> før
Her går det galt, da der ikke ekspanderes på array's i en string.
[klip]
Jo, det gør der faktisk, hvis man skriver <?php print("SERVER PHP_SELF = $_SERVER[PHP_SELF]<br>");?>, altså uden apostrof eller citationstegn rundt om PHP_SELF. Det undrer mig faktisk, at Jørgen ikke får fejl, når han skriver det med apostrof.
Det er lidt ejendommeligt. Se f.eks: <?php print("A. SERVER PHP_SELF => " . $_SERVER['PHP_SELF'] . "<br>");?> <?php print("A2. SERVER PHP_SELF => " . $_SERVER[PHP_SELF] . "<br>");?> <?php print("B. SERVER PHP_SELF => {$_SERVER['PHP_SELF']}<br>");?> <?php print("B2. SERVER PHP_SELF => {$_SERVER[PHP_SELF]}<br>");?> <?php print("C. SERVER PHP_SELF = $_SERVER['PHP_SELF']<br>");?> <?php print("C2. SERVER PHP_SELF = $_SERVER[PHP_SELF]<br>");?>
-- Med venlig hilsen
Jørgen Heesche mailto:sslug@sslug
![]() |
![]() |
![]() |
||||||||||||
|
||||||||||||||
![]() | ||||||||||||||
|
||||||||||||||
![]() |
![]() |
![]() |