> My web host uses a different URL for its SSL connections like so:
> 
> SSL:            https://server4000.net/mysite/index.php3
> non-SSL:      http://www.mysite.com/index.php3
> 
> I thought I had things set correctly in my standard_library ScreenURL
> setting, but whenever the SERVER_NAME switches over to the SSL server, it
> retains the "http://" instead of "https://"
> 
> If anyone else out there has had this problem switching back and forth
> between two servers, please let me know how you worked around it. I am truly
> at my wits end.
> 
> Just for reference, this is what I have so far:
> 
> function ScreenURL($screen, $secure=FALSE, $extra='')
>  {
>   global $sid;
>   global $UserInfo;
> 
>   if(USE_SSL AND $secure)
>   {
>    $URL = "https://server4000.net/mysite";
>    $URL .= EXTERNAL_PATH . SCRIPT_NAME . "?SCREEN=$screen";
>   }
>   else
>   {
>    $URL = "http://";
>    $URL .= SERVER_NAME . EXTERNAL_PATH . SCRIPT_NAME . "?SCREEN=$screen";
>   }
> 
>   if((!USE_COOKIES) OR (!COOKIE_FOUND))
>   {
>    $URL .= "&sid=$sid";
>   }
> 
>   if(is_array($extra))
>   {
>    for(reset($extra); $key=key($extra); next($extra))
>    {
>     $URL .= "&$key=" . prepareText($extra[$key]);
>    }
>   }
> 
>   return($URL);
>  }
Perhaps you could try stepping through the code to find the bug.  I.e.
put print statements in various parts of the above function to figure
out what your problem is.

Good luck,
-jj

-- 
if (shannon - jj) * behrens == webEngineer["CLEAR INK�"]:
    print "<i>imagination is the only real medium(sm)</i><br>"


------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to