i'm trying to create my 1st php page. my php codes are contained in a
different folder separated from my html codes. 

i'm trying to do the 'hello world' but without luck. below is the php
code. i can write anything in my html page but any php syntax will not
work. 

example: if i write

        echo 'hello world';

in the same php file the 'hello world' get printed on top of my
header. if i write 

       <?php echo 'hello world'; ?>

in my html file nothing happens. 

PLEASE HELP! THANK YOU!!!




<?php
include("./_include/core/main_start.php");





$page = new CHtmlBlock("", $g['tmpl']['dir_tmpl_main'] . "testings.html");
$header = new CHeader("header", $g['tmpl']['dir_tmpl_main'] .
"_header4.html");
$page->add($header);
$footer = new CFooter("footer", $g['tmpl']['dir_tmpl_main'] .
"_footer.html");
$page->add($footer);



include("./_include/core/main_close.php");

?>

Reply via email to