servus,
ich will mir mit php eine variable bastel, die den inhalt einer neuen Datei (auch php) darstellen soll.
das sieht dann etwa so aus
PHP-Code:
$inhalt = '<?php echo "hallo alle" ?>';
doch so wird der quelltext in der neuen datei in einer Zeile geschrieben, doch ich möchte dass er so steht wie normal, also so:
PHP-Code:
<?php
echo "hallo alle";
?>
dachte, es geht vielleicht so, aber das funzt nicht
PHP-Code:
$inhalt = '<?php';
$inhalt = $inhalt & 'echo "hallo alle"';
$inhalt = $inhalt & '?>';
hat jemand ein tipp ansi lady??
greetz