Reply to modrewrites and folder name

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация