D. Posso utilizzare un tag PHP nella mia pagina html?
Ris . Sì, puoi utilizzare PHP tag all'interno di pagine html. Tutto quello che devi fare è incorporare PHP con html nel tuo apache configurazione e aggiungere moduli che eseguiranno il codice php nelle tue pagine html. Il nostro supporto ti aiuterà se non sei in grado di apportare queste modifiche dalla tua parte o se hai un account di hosting condiviso.
Per coloro che hanno server dedicati o account VPS possono farlo in "AddHandler ” sezione di httpd.conf
Aggiungi semplicemente la seguente riga in AddHandler :-
AddType application/x-httpd-php .html
Dopo averlo aggiunto, la sezione del gestore aggiuntivo sarebbe simile a questa :-
AddType application/x-httpd-php .php AddType application/x-httpd-php .php4 AddType application/x-httpd-php .php3 AddType application/x-httpd-php .html AddType application/x-httpd-php-source .phps AddType application/x-httpd-php .phtml AddHandler cgi-script .cgi .pl AddType text/html .shtml AddType application/x-tar .tgz AddType text/vnd.wap.wml .wml AddType image/vnd.wap.wbmp .wbmp AddType text/vnd.wap.wmlscript .wmls AddType application/vnd.wap.wmlc .wmlc AddType application/vnd.wap.wmlscriptc .wmlsc