I have so stupid issue which I just can't resolve now and I need it so much..
So here's the code:
$siteURL = "http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/';
$bookmarklet = 'javascript:document.location.href=\'' . $siteURL . '?url=\'+escape(document.location.href)';
it takes things from url, like "domain.com/?url=things"
I need the code to add http:// before "things"
I've tried adding $bookmarklet = 'http://'. $bookmarklete
and changing it in various ways but it didn't helped.
Please help me guys!