Salve a tutti,
ho una pagina con codice php però vorrei ke invece di essere index.php vorrei ke fosse index.htm o .html
se metto l'include mi esce la pagina bianca
come posso fare?
grazie
Salve a tutti,
ho una pagina con codice php però vorrei ke invece di essere index.php vorrei ke fosse index.htm o .html
se metto l'include mi esce la pagina bianca
come posso fare?
grazie
Puoi usare i framset con il top a zero e nel main la pagina php...brutto ma efficace.
Ciao
Scuba
Stefano De Simone
http://www.blackice.it Raccolta Script,C#,php,Ajax
Se puoi mettere mani alla configurazione di Apache (se usi Apache come server web):
AddType application/x-httpd-php .php
questa linea dice ad apache che tutti i files con estensione .php devono essere interpretate come pagine php
quindi se aggiungi:
AddType application/x-httpd-php .php .html
anche le tue pagine .html sono interpretate come php, cioè puoi mettere codice php senza problemi.
e non potendo accedere ad apache come posso fare? se è possibile mostrarmi anche qualche esempio!
grazie
hai tre pagine il contenitore default.html
due pagineCodice PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento senza titolo</title>
</head>
<frameset rows="0,*"" frameborder="NO" border="0" framespacing="0">
<frame src="pluto.html" name="topFrame" id="topFrame" title="topFrame" />
<frame src="pagina.php" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html>
pluto.html che non vedrai mai
e
pagina.php la tua pagina dinamica
Ciao
Scuba
Stefano De Simone
http://www.blackice.it Raccolta Script,C#,php,Ajax
grazie per la risposta però il problema è ke se faccio così quando clicco su un link e mi apre la pagina l'indirizzo nella barra resta sempre index.htm come mai?