sorry im realy stupid
i create index.php and in index.php i put only this code
Code:
<?php
$active_page = 'home';
if (!empty($_GET['page'])) {
$desired_page = preg_replace('/[^a-z0-9\-\_]/i','',$_GET['page']);
if (file_exists($desired_page.'.html')) {
$active_page = $desired_page;
}
}
include $active_page.'.html';
?>
and i have home.html with site design. right?
and i create xxx.html with some text only
when i go to this link localhost/index.php?page=xxx i don't see changes and i don't see tekst from xxx.html
from what line of this code reading the file xxx.html xxx2.html......
thanks for helping
Last edited by hobbyhall; 04-19-2009 at 07:32 PM..
|