If it's just a plain string like what you posted...
$url = "accountid=*** type=prem servertime=1247000294 addtime=****** validuntil=**** username=8 directstart=1 protectfiles=0";
$temp = explode(' ', $url);
foreach($temp as $k => $v)
{
$temp[$k] = explode('=', $v);
$data[$temp[$k][0]] = $temp[$k][1];
}
unset($temp);
$data["accountid"] // stores the account ID, equal to "***"
$data["type"] // stores the type, equal to "prem"
//etc....
It would be slightly different if it was actually a query string, which could be likely.
Ian Elliott
2009-07-07 21:16:18