Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| code:php:home [2019/09/15 10:41] – gerardorourke | code:php:home [2024/03/11 17:24] (current) – [Retreiving variables from HTTP url] gerardorourke | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== PHP ====== | ====== PHP ====== | ||
| + | |||
| + | * https:// | ||
| + | |||
| + | |||
| *https:// | *https:// | ||
| Line 10: | Line 14: | ||
| *[[https:// | *[[https:// | ||
| *https:// | *https:// | ||
| + | *Issue with accessing remote files is due to " | ||
| + | *https:// | ||
| ===== Sample Code ===== | ===== Sample Code ===== | ||
| Line 54: | 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; | ||
| + | </ | ||
| + | </ | ||
| </ | </ | ||