sandip1110
Active Member
I ve tried to decode lnx.lu in php,
using below code, any way to fix coz its not working.
using below code, any way to fix coz its not working.
Code:
function decodeLinkbucks($link)
{
$page = file_get_contents($link);
preg_match("#Lbjs.TargetUrl = 'http:\/\/tny.cz\/(.*?)';#", $page, $match);
return $match[1];
}
Code:
preg_match('#(http:\/\/lnx.lu\/\w+\)#', $item['desc'], $match);
$origDescription = $match[1];
$origDescription = decodeLinkbucks($origDescription);