Posted by dean on 10/13/42 11:28
hi
I am trying to seo my site.
Currently I have something like this setup in .htaccess
RewriteRule browse/section1/ /browse.php?section=1
Although when I try and get the name of the current folder i.e.
section1 I am unable to do it, I am using the following code
$path = dirname($_SERVER[PHP_SELF]);
$position = strrpos($path,'/') + 1;
print substr($path,$position);
This outputs the directory name of browse.php rather than the current
directory of section1 I assume this is because browse.php is the name
of the actual file running
Navigation:
[Reply to this message]
|