Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Constante
#2
eu folosesc define(), atunci cand am un site in mai multe limbi. Imi fac un folder lang si cate un fisier pentru fiecare limba de care am nevoie (ro.language.php, en.language.php).
exemplu:
Quote:RO:
define('SQL_ERROR','S-a produs o eroare mySQL');
EN:
define('SQL_ERROR','There was a mySQL error');
Reply


Messages In This Thread
Constante - by fulgerulde10 - 04-02-2009, 01:17 AM
RE: Constante - by casperel - 11-05-2009, 12:23 PM



Users browsing this thread: