![]() |
php global definitionen geht nicht ?
ganz oben hab ich:
global $bgcolor7 dann: $bgcolor7 = "#FF9933"; //die farbe definiert und irgendwo in einer funktion ruf ich dann auf: echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" bgcolor=\"$bgcolor7\">\n"... usw... nur er nimmt mit die farbe nicht. Wenn ich aber statt $bgcolor7 den farbwert #ff9933 einsetze geht es. WARUM ? |
PHP-Code:
PHP-Code:
|
klingt zwar unlogisch (und bei allen anderen definitionen gehts auch) aber ich habs probiert - ohne Erfolg.
|
PHP-Code:
~ |
http://at.php.net/manual/de/migration4.variables.php
Zitat:
|
ich will sie aber nicht unsetten weil ich die variablen später wieder benötige.
|
Poste vielleicht einmal das ganze Script
|
hehe lieber nicht aber ich werd mal a bisl war rauskopieren
PHP-Code:
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor=""> <table cellpadding="0" cellspacing="0" width="100%" border="1" bgcolor=""> |
Das Script selber funktioniert hier problemlos
Wie wird es eigentlich aufgerufen? Sieht für mich wie ein Skin für PHP-Nuke aus ;) |
ja ist ein theme für phpnuke 6
|
Alle Zeitangaben in WEZ +2. Es ist jetzt 05:05 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag