Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


php_tricks

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
php_tricks [2016/07/20 16:57] juckinsphp_tricks [2016/07/20 16:57] juckins
Line 1: Line 1:
 +<code>
 $actual_link = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']; $actual_link = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
  
Line 26: Line 27:
  
 echo "Path of the URL without the filename ---> $path<br>\n"; echo "Path of the URL without the filename ---> $path<br>\n";
 +</code>
  
 More info on parsing the URL: http://php.net/manual/en/function.parse-url.php  More info on parsing the URL: http://php.net/manual/en/function.parse-url.php 
  
php_tricks.txt · Last modified: 2018/11/01 21:32 by juckins