Hi
http://domainname.com/filenmae.php?something=somevalue
now, http://domainname.com is the $_SERVER['DOCUMENT_ROOT']
filenmae.php?something=somevalue is
i'm not entirely sure what you are asking :<
echo basename ($_SERVER['PHP_SELF']); // filename.php
echo $_GET["something"]; // somevalue
Sanoz0r wrote:i'm not entirely sure what you are asking :< echo basename ($_SERVER['PHP_SELF']); // filename.php echo $_GET["something"]; // somevalue
The problem is I use .htaccess
So, http://domainname.com/hello.htm?soimething don't really run from hello.htm
I know I can get /hello.htm using explode but I wonder if there is something more special for that.