Hello,
Let's say my PHP 4 script can be accessed on
and I want to call
https://mine.com/secure.php. Without hard coding the domain, how can I
incorporate "https"? Right now, I'm trying
action="<?php print "https://" . $_SERVER['SERVER_NAME'] .
"/secure.php"; ?>
but the resulting url is
https://www.mine.com/secure.php, which is bad because on Mozilla I lose
my session cookie if I go from mine.com to www.mine.com.
Any help is greatly appreciated, - Dave
Let's say my PHP 4 script can be accessed on
and I want to call
https://mine.com/secure.php. Without hard coding the domain, how can I
incorporate "https"? Right now, I'm trying
action="<?php print "https://" . $_SERVER['SERVER_NAME'] .
"/secure.php"; ?>
but the resulting url is
https://www.mine.com/secure.php, which is bad because on Mozilla I lose
my session cookie if I go from mine.com to www.mine.com.
Any help is greatly appreciated, - Dave
Comment