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/09 22:44] – [PHP] gerardorourke | code:php:home [2024/03/11 17:24] (current) – [Retreiving variables from HTTP url] gerardorourke |
|---|
| ====== PHP ====== | ====== PHP ====== |
| | |
| | * https://material-dashboard-laravel.creative-tim.com/docs/getting-started/laravel-setup.html |
| | |
| | |
| |
| *https://hackernoon.com/creating-rest-api-in-php-using-guzzle-d6a890499b02 | *https://hackernoon.com/creating-rest-api-in-php-using-guzzle-d6a890499b02 |
| *[[https://www.cloudways.com/blog/admin-dashboard-template-php-boostrap-4/|Admin Dashboard Template]] | *[[https://www.cloudways.com/blog/admin-dashboard-template-php-boostrap-4/|Admin Dashboard Template]] |
| *[[https://www.htmlgoodies.com/beyond/php/fetch-cross-domain-content-using-a-php-proxy.html|https://www.htmlgoodies.com/beyond/php/fetch-cross-domain-content-using-a-php-proxy.html]] | *[[https://www.htmlgoodies.com/beyond/php/fetch-cross-domain-content-using-a-php-proxy.html|https://www.htmlgoodies.com/beyond/php/fetch-cross-domain-content-using-a-php-proxy.html]] |
| | *https://stackoverflow.com/questions/36577020/php-failed-to-open-stream-no-such-file-or-directory |
| | *Issue with accessing remote files is due to "allow_url_include" off |
| | *https://www.register365.com/knowledge//php_hypertext_preprocessor/700-fopen_php_on_windows.html |
| ===== Sample Code ===== | ===== Sample Code ===== |
| |
| echo "myname variable is: " . $myname; | echo "myname variable is: " . $myname; |
| ?> | ?> |
| | </code> |
| | |
| | ==== how PHP use to be embdeded on dokuwiki ==== |
| | <code php> |
| | ~~NOCACHE~~ |
| | |
| | <WRAP centeralign> |
| | <php> |
| | if ($_SERVER["HTTP_X_FORWARDED_FOR"] != "") { |
| | $IP = $_SERVER["HTTP_X_FORWARDED_FOR"]; |
| | $proxy = $_SERVER["REMOTE_ADDR"]; |
| | $host = @gethostbyaddr($_SERVER["HTTP_X_FORWARDED_FOR"]); |
| | } else { |
| | $IP = $_SERVER["REMOTE_ADDR"]; |
| | $host = @gethostbyaddr($_SERVER["REMOTE_ADDR"]); |
| | } |
| | echo "ip ". $IP; |
| | </php> |
| | </WRAP> |
| </code> | </code> |