Forum Moderators: coopster
Can this type of thing be done with https:// or is it just file type or domain specific?
if(isset($_SERVER["HTTPS"]))
{
// we're secure
}
If this doesn't work, create a phpinfo() test page on your secure server and study the global variables for anything that might indicate a secure connection. There is also $_SERVER["SERVER_PORT"] which should hold 443 if you're on a secure page.