Reply to Re: rewrite this a little better

Your name:

Reply:


Posted by windandwaves on 12/06/06 00:35

Steve wrote:
> "windandwaves" <nfrancken@gmail.com> wrote in message
> news:1165268000.168977.227370@l12g2000cwl.googlegroups.com...
> |
> | Steve wrote:
> | .....
> | > $site->uri = 'http' . ($securityEnabled ? 's' : '') . '://' .
> | > $_SERVER['HTTP_HOST'];
> |
> | I dont really understand $site->uri part. It seems that you are
> | referring to a class. Is this php 5? I am working with php 4.3 I
> | believe.
> |
> | Can you explain it a bit more?
> |
> | Thank you
>
> it is a static interface on an application class that i use. it stores
> global settings/information about the site...like directory paths for
> different things for example. it is php 5. that's not what's important. what
> is, is the simple approach it takes to do what you want.
>
> if you can explain your setup a bit more, then perhaps i could explain mine
> to you better.

Hi Steve

I have the following setup: if people open the homepage, my function
checks whether they are in the unsecured site. If they are not then
they will be redirected to the unsecure site location(header:
unsecureurl). If people are on the cart page (the start of the secure
traject) then the function checks if the people are on the secure site.
If they are not then it will redirect them to the secure site (header:
secureurl). At the end of the secure traject, they will hit the
homepage again and so they are full circle.

I have some problems with the session information propagating between
these switches, but I solved this (I think).

Hope that makes sense

Nicolaas

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация