Is there a function or predefined variable that returns just the path of the referring page/script and not the filename?
It seems like $HTTP_REFERER returns the full path (sometimes) but I'd like to just have the actual path WITHOUT the filename. For instance:
it returns: http://www.site.com/dir/page.html
but all I want is: http://www.site.com/dir
TIA
Paul