checking for scheme (http, https) in php

Hi guys,

Can someone tell me how to determine the sceme (http, https) used by the current website in PHP? The issue is not breaking up the URL, but getting the URL from the server. All the functions only return the very top directory. I haven't seen a function that returns the domain part.

Thanks,
Max

 

 

 

 

Top