Loading ...
Sorry, an error occurred while loading the content.

RE: [php_greek] variables

Expand Messages
  • Symeon Charalabides
    Enas allos tropos einai na xekinas kathe selida me kati tou typou: if (!$_COOKIE[ default_language ] || $_COOKIE[ default_language ]== el ) {
    Message 1 of 5 , Nov 13, 2003
    • 0 Attachment
      Enas allos tropos einai na xekinas kathe selida me kati tou typou:

      if (!$_COOKIE['default_language'] || $_COOKIE['default_language']=='el') {
      $default_language='el';
      } else {
      $default_language='uk';

      }

      to opoio volevei an eheis ena geniko header i kapoio arheio me genika preferences pou
      kaleitai me kathe HTTP request. Profanos thelei allages symfona me tis dikes sou protimiseis,
      kai prepei na steileis ena cookie me ti metavliti $default_language se opoion den ehei. Ayto an
      theleis na apofygeis ta session gia opoiousdipote logous.

      Note: Den yparhei thema dieyrynsis tis vasis ton hriston, kathos kai ta cookies kai ta session
      apaitoun browser pou na dehetai cookies.

      > me session_start(), session_register("metavliti") mporeis na kaneis auta pou
      > thes.
      >
      > _____
      >
      > From: Alaios [mailto:alaios@...]
      > Sent: Thursday, November 13, 2003 9:22 AM
      > To: php_greek@yahoogroups.com
      > Subject: [php_greek] variables
      >
      > Kalispera yparxei tropos na dino times se kapoies
      > constant metablites kathe fora pou enas xristis kanei
      > login?
      > Gia paradeigma defaul_language='el'.
      > Kanei login o xristis A thelo to default_language='el'
      > Kanei login o xristis B thelo to
      > default_language='uk' klp////
      > Kathe fora pou sti sinexeia na kalo tin metabliti
      > default_language na mou fernei tin timi el ean einai
      > gia ton xristi A kai tin timi uk ean einai gia tin
      > timi B
      >


      Symeon Charalabides, C.T.O Webmate.gr
      Papanastasiou 81, 10445 Athens, Greece
      Tel.: +30 210 8312243
      Fax: +30 210 8094673
      VAT #: 999919635

      http://www.webmate.gr
    Your message has been successfully submitted and would be delivered to recipients shortly.