webtrends doesn't track pages with a variable in the URL (ie page.php?variable=stuff) so i have this snippet pass variables in a URL:
http://www.site.com/informed/page.php/1652.htm
where the "1652" is the "issue_id" variable. it works well and webtrends tracks each of my pages. however, the code below is no longer working with a new upgrade to linux es 3 and php 4.3, and i'm not sure why. any thoughts? thanks!
code:
//convert "/105.htm" style URL to pull out issue_id //variable, which is the number before the .htm part of the //URL
if (ereg('(/)([0-9]).(.)', $GLOBALS['HTTP_SERVER_VARS']['PATH_INFO'], $regs))
{
$issue_id = $regs[2];
$type = $regs[3];
} // endif