On Thursday 05 August 2004 06:18, Justin Patrin wrote:

>   if($_SERVER['HTTPS'] != 'on') {

Careful, IIRC the value of $_SERVER['HTTPS'] differs depending on websever. 
The original isset() is the better way.

Bing, IIRC you're redirecting back to the same page weren't you?

> if ($option == 'content' and $task == 'view' and $id == 159 and $Itemid ==
> 162)
> {
>    session_write_close();
>
>    if (!isset($_SERVER['HTTPS']))
>    {
>     header("Location:
> https://computing.eng.iastate.edu/mambo/index.php?option=content&task=view&;
>id=159&Itemid=162"); } else {
>              echo 'hello my friend';
>           }

Your logic states if not in HTTPS redirect to HTTPS, otherwise (if in HTTPS) 
echo.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Living in LA is like not having a date on Saturday night.
                -- Candice Bergen
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to