Pisanje html koda
Da li moram da pisem kompletno stranu rucno u php-u ili mogu nekako da ucitam pripremljenu stranu? Npr. kada radim autorizaciju uradim sledece:
--------------------------------------------------------------------------------
prijavaadministratora.php:
<%
require_once "adminfun.php";
require_once "..//bibliotekafun.php";
$adminprijavljen=provera_prijave_administratora($Lozinka);
if ($adminprijavljen)
echo(citaj_stranu("prijavaadministratora.html"));
else
echo("Neuspesna prijava");
%>
--------------------------------------------------------------------------------
bibliptekafun.php:
function citaj_stranu($datoteka){
$dat=fopen($datoteka, "r");
$sadrzaj=fread($dat, filesize($datoteka));
fclose($dat);
return $sadrzaj;
}
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
prijavaadministratora.php:
<%
require_once "adminfun.php";
require_once "..//bibliotekafun.php";
$adminprijavljen=provera_prijave_administratora($Lozinka);
if ($adminprijavljen)
echo(citaj_stranu("prijavaadministratora.html"));
else
echo("Neuspesna prijava");
%>
--------------------------------------------------------------------------------
bibliptekafun.php:
function citaj_stranu($datoteka){
$dat=fopen($datoteka, "r");
$sadrzaj=fread($dat, filesize($datoteka));
fclose($dat);
return $sadrzaj;
}
--------------------------------------------------------------------------------
Previous by date: Re: zaduzenje za vodje timova
Next by date: ===== SPAM ===== Re: "Cannot modify header information" ?
Previous by thread: ===== SPAM ===== Re: "Cannot modify header information" ? Next by thread: Re: Pisanje html koda
Previous by thread: ===== SPAM ===== Re: "Cannot modify header information" ? Next by thread: Re: Pisanje html koda