Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| code:php:home [2019/10/27 18:04] – [PHP] gerardorourke | code:php:home [2024/03/11 17:24] (current) – [Retreiving variables from HTTP url] gerardorourke | ||
|---|---|---|---|
| Line 60: | Line 60: | ||
| echo " | echo " | ||
| ?> | ?> | ||
| + | </ | ||
| + | |||
| + | ==== how PHP use to be embdeded on dokuwiki ==== | ||
| + | <code php> | ||
| + | ~~NOCACHE~~ | ||
| + | |||
| + | <WRAP centeralign> | ||
| + | <php> | ||
| + | if ($_SERVER[" | ||
| + | $IP = $_SERVER[" | ||
| + | $proxy = $_SERVER[" | ||
| + | $host = @gethostbyaddr($_SERVER[" | ||
| + | } else { | ||
| + | $IP = $_SERVER[" | ||
| + | $host = @gethostbyaddr($_SERVER[" | ||
| + | } | ||
| + | echo "ip ". $IP; | ||
| + | </ | ||
| + | </ | ||
| </ | </ | ||