wrote:
Hi,
I need to check does URL use http or https?
Right now I use this code:
if(preg_match('/https:/', $_SERVER['SCRIPT_URI']) == false)
{
header('location: [URL]https://www.test.com/test.php[/URL]');
exit;
}
but I am sure there is much better solution.
:)
uot;. Then just check
incrementally from there.
Whether or not that's going to be faster than just looping through them
all I don't know...
good luck!
-philip
--
Matt Blasinski (mbv)
Information Systems Technology Services Professional
Internet Infrastructure Applications Technolo
nfiguration File (php.ini) Path => /usr/local/lib/php.ini
PHP API => 20020918
PHP Extension => 20020429
Zend Extension => 20021010
Debug Build => no
Thread Safety => disabled
Registered PHP Streams => php, http, ftp, https, ftps
If anyone has had a similar problem or has
3 matches
Mail list logo