Ciao a tutti.
Ho realizzato i seguenti file:
pannello.html
index.phpcodice:<!doctype html> <html> <head> <meta charset="utf-8"> <title>Documento senza titolo</title> </head> <body> Ciao <?php echo $username ?>, benvenuto nel pannello di controllo! </body> </html>
L'output è il seguente:codice:<?php $view = file_get_contents("pannello.html"); $username = "PAOLO"; echo $view; ?>
Come faccio ad eseguire il codice PHP dentro la variabile $view ed inserire l'output nella stessa variabile?codice:Ciao , benvenuto nel pannello di controllo!

Rispondi quotando