For example i have a a.php and i have included a b.php in this a.php . I want this script (in b.php) shows the filename of a.php. I am doing this omitting after the $PHP_SELF 's last slash(/) Then script finds the filename as a.php . Now the question: lets we entered in the url like www.mysite.com/a then it finds the .php part but not written in the url. I mean does $PHP_SELF shows a.php or a in all server types? Another question there is a frame on the page and the url seen like www.mysite.com but the calling script in the frame is http://www.mysite.com/a.php in this situation what the $PHP_SELF gives?
I think everything is clear, Sorry about my language because i am not an english spoken man. Thanx for reading...