you mean to use for some sort of header redirect or something?

couldn't you do

1. click link "change to secure mode"
2. pass the url you just came from with the link (or get it from
HTTP_REFERRER or whatever it is)
3. header("Location: " . str_replace("http://";, "https://";, $last_url));

or am i missing the point of what you want to do?

HTH

/beau

// -----Original Message-----
// From: George Lioumis [mailto:[EMAIL PROTECTED]]
// Sent: Monday, 22 October 2001 2:52 PM
// To: PHP Mailing List
// Subject: Re: [PHP-DB] https
// 
// 
// I think that you MUST retype the whole URL.
// 
// George.
// 
// ----- Original Message ----- 
// From: "J-E-N" <[EMAIL PROTECTED]>
// To: <[EMAIL PROTECTED]>
// Sent: Saturday, October 20, 2001 2:22 PM
// Subject: [PHP-DB] https
// 
// 
// hello,
// 
// how can i switch from http to https without typing the whole url?
// 
// thanks
// 
// 
// 
// -- 
// PHP Database Mailing List (http://www.php.net/)
// To unsubscribe, e-mail: [EMAIL PROTECTED]
// For additional commands, e-mail: [EMAIL PROTECTED]
// To contact the list administrators, e-mail: 
// [EMAIL PROTECTED]
// 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to