Categories

Akhirnya, menutup posting belajar PHP. Buat file terakhir berikut ini di DIRECTROY LOCAL, bkan di folder template maupun page
<?
include "./template/menu.php";
include "./template/isi.php";
include "./template/rangka.php";



$pg=isset($pg)?$pg:"";
switch($pg)

{
case "profil";
include "./page/profil.php";
break;
case "a";
include "./page/a.php";
break;
case "":default :
include "./template/isi.php";
break;


}


$tampung=$Main->rangka;
$tampung=ereg_replace("<!-- isi -->",$Main->isi,$tampung);
$tampung=ereg_replace("<!-- abc -->",$Main->abc,$tampung);
// kode ereg replace maksudnya agar menimpa halaman pertama
echo $tampung;
?>

PREV

0 komentar

Posting Komentar

pasang banner milikku

Visitor Map

Visitor Counter

Free Web Hit Counters
.:: BEST VIEWED BY FIREFOX ::.