ERLEDIGT
JA
JA
ANTWORTEN
4
4
ZUGRIFFE
225
225
EMPFEHLEN
-
Hallo Leute,
ich hab da mal ne Frage und zwar möchte ich etwas in der variable speichern.
nämlich selber einen Php-Code um diesen dann in einer anderen Php-Datei zu speichern.
mein Code:
$fhost = '$mysqlhost = $_POST['mysqlhost'];';
$foptions = fopen("options\\settings.php", "w");
fwrite($foptions, $fhost);
fclose($foptions);
so kann das ja nun nicht gehen! Denn dabei kommt ein Fehler raus:
Parse error: syntax error, unexpected T_STRING
kann mir jemand dabei helfen?
-
-
Oder mach es doch einfach so :
PHP-Code:$mysqlhost = htmlspecialchars($_POST['mysqlhost']);
$fhost = $mysqlhost;
-
Danke euch beiden, jab mal das von Raisch genommen, hat auch geklappt
Danke
-
Okay
Kein Problem
Ähnliche Themen
-
Problem mit Variablen
Von Fabsch im Forum Javascript & AjaxAntworten: 3Letzter Beitrag: 31.07.07, 13:58 -
Variablen Problem
Von green_phanta im Forum Flash PlattformAntworten: 9Letzter Beitrag: 03.02.07, 11:16 -
problem mit Variablen Variablen
Von Gray im Forum PHPAntworten: 3Letzter Beitrag: 02.08.05, 09:05 -
Problem mit variablen
Von Flame im Forum PHPAntworten: 4Letzter Beitrag: 10.11.03, 20:05 -
PHP 4.2.3 Variablen Problem
Von cardex im Forum PHPAntworten: 4Letzter Beitrag: 26.09.02, 22:32





Zitieren

Login






[PHP][Snippet] Array zu XML konvertieren