focal55 on 10/19/11
Last Edited at 10/19/11 02:29pm
<?php$url = "blahblah.com";// to clarify, this shouldn't be === false, but rather !== 0if (0 !== strpos($url, 'http://') && 0 !== strpos($url, 'https://')) { $url = "http://{$url}";}?>
Report this snippet Tweet
Comment:
You need to login to post a comment.