Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
code:php:home [2019/09/15 10:41] gerardorourkecode:php:home [2024/03/11 17:24] (current) – [Retreiving variables from HTTP url] gerardorourke
Line 1: Line 1:
 ====== 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
Line 10: Line 14:
   *[[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   *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 =====
  
Line 54: Line 60:
 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>
  • code/php/home.1568540501.txt.gz
  • Last modified: 2019/09/15 10:41
  • by gerardorourke