Jump to content
php.lv forumi

Kaa dabuut lai nevar atvert header php?


Uldeens

Recommended Posts

Man ir lapa INDEX.PHP

 

<include visas padariisanas HEADERUS FOOTEUS NAVBAR UTT>

 

Un HEARDER.PHP

<? echo "te ir hederis"; ?>

 

footer.php

 

NAVBAR.php UTT un taa jo projam.

 

PROBLEEMA: Spiezot adresi Http://www.uldis.lv

viss gludi, Bet ja raxta http://www.uldis.lv/footer.php vins atver tikai footer lapas dalu?? Kaa izdariit lai footer.php atseviski nevareetu atveert???

 

Man ir doma vainu footer.php uc inkluudojamiem failiem prieksaa likt <include index.php> vai arii tos failus saglabaat kaa parestu textu..

Link to comment
Share on other sites

var arii to footer.php noformeet shadi:

<?php
 fuunction displayFooter()
 {
   // te tu raadi savu fuuteri
 }
?>

taadeejaadi, ja raksta adresi pa teisno nekas netiks izvadiits, a bet index.php lapaa, tu pashaa saakuma(augshaa) sainkluudo visus headerus/footerus un tad kad vajag izvadiit, tad tikai izsauc to displayFooter();

Link to comment
Share on other sites

index.php augšā:

define('SECURITY_ULDEENS',true);

footer.php augšā:

if(!defined('SECURITY_ULDEENS')){die();}

;)

Link to comment
Share on other sites

×
×
  • Create New...