@Sam is close, but I think you need to do this:
$url="http://www.example.com";
Without the protocol in front, you get the wrong result. Change to
$url="https://www.example.com";
if you need an SSL link.
@Sam is close, but I think you need to do this:
$url="http://www.example.com";
Without the protocol in front, you get the wrong result. Change to
$url="https://www.example.com";
if you need an SSL link.