Basename($PHP_SELF) In ASP?

This is question regarding ASP. I learn this from one of the thread that we can display the PATH_INFO:

[VBS]Response.Write Request.ServerVariables("PATH_INFO") [/VBS] What I get is /mypath/myfilename.asp.

My question is that "How can I only retrieve the myfilename.asp, and not including the path?". Yes like basename($PHP_SELF). [VBS]Is there something like
Response.Write Request.ServerVariables("Filename") [/VBS]

View Replies


ADVERTISEMENT

Equivalent Of PHP's $_SERVER[PHP_SELF]

I am looking for the equivalent of $_SERVER[PHP_SELF] in ASP. I have looked at the Page and Request Class. Didn't quite find what I want.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved