Is there a tidy way of detecting whether a script is being run over a secure web connection?
I realise it could be done by looking at the URL and seeing if it starts with http or https but I'm hoping there's a tidier way.
Thanks
Look at
$HTTP_SERVER_VARS["SERVER_PORT"]
http is almost always port 80, https is different (443, I think)
-Ben
ah yes! that would do it! cheers!