Dear Friends,
My query is
I have to get the value of protocol in the location bar
ie is it http or https or ftp etc
regards bvsureshbabu
Try $protocol = $_SERVER['SERVER_PROTOCOL'];
Phodetheus
Dear Friend,
for http and https protocols
this is giving result as http
Ah sorry didn't realise. Try this bit of code to list off ALL the $_SERVER vars. Should help
$headers = $_SERVER; foreach ($headers as $header => $value) { echo "$header: $value <BR>"; }