![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
![]() Grupa: Zarejestrowani Postów: 312 Pomógł: 0 Dołączył: 29.12.2004 Ostrzeżenie: (0%) ![]() ![]() |
cześć, mam problem ze zdefinowaniem stałej w klasie (PHP5.0.1):
w rezultacie print conf::SOMEDIR daje: Parse error: parse error, unexpected '.', expecting ',' or ';' in /var/www/test/5/2.0/conf.inc.php on line 42 print conf::SOMECNS działa dobrze: zwraca /var/www/test/5/2.0/ dlaczego nie mogę nic dowiązać do stałej za pomocą operatora kropki ? Ten post edytował ennics 24.11.2005, 10:25:57 -------------------- ![]() ![]() |
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 897 Pomógł: 40 Dołączył: 16.12.2003 Skąd: Warszawa Ostrzeżenie: (0%) ![]() ![]() |
Bo to jest stała
![]() -------------------- how many SEO experts does it take to change a light bulb,lightbulb,light,bulb,lamp,lighting,switch,sex,xxx
5-Reasons-why-you-should-NEVER-fix-a-computer-for-free |
|
|
![]()
Post
#3
|
|
![]() Grupa: Zarejestrowani Postów: 312 Pomógł: 0 Dołączył: 29.12.2004 Ostrzeżenie: (0%) ![]() ![]() |
hmm no ok
![]()
-------------------- ![]() ![]() |
|
|
![]()
Post
#4
|
|
![]() Grupa: Moderatorzy Postów: 36 557 Pomógł: 6315 Dołączył: 27.12.2004 ![]() |
moze dlatego:
Cytat "The value must be a constant expression, not (for example) a variable, a class member, result of a mathematical operation or a function call." define a const chyba mają prawo sie różnic? -------------------- "Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista "Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer |
|
|
![]() ![]() |
![]() |
Aktualny czas: 19.08.2025 - 19:50 |