I need to get just the base part of the address without the .html part. The code below does this, but apparently it's not very reliable and may not work on some machines. Is there any other way i could do this?
$file = basename($_SERVER['HTTP_REFERER'],'.html');
The above code will show from this:
http://www.site/folder1/folder2/426028.html
this result: 426028
So $file will equal 426028