Mam mały problem ze stroną.
Wrzucam na stronę dowolny kod php. Np. "include"...
I zamiast zawartości, wyświetla się puste miejsce. Oto fragment kodu strony:
<?php
function subheader($u_m_opis, $u_m_sk, $u_title, $l_charset)
{
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<meta name="Description" content="'.$u_m_opis.'" />
<meta name="Keywords" content="'.$u_m_sk.'" />
<meta http-equiv="Content-Type" content="text/html; charset='.$l_charset.'" />
<meta name="Distribution" content="Global" />
<meta name="Robots" content="index,follow" />
<link rel="stylesheet" href="theme/green/style.css" type="text/css" />
<script type="text/javascript" src="js/advajax.js"></script>
<script type="text/javascript" src="js/rating.js"></script>
<title>'.$u_title.'</title>
</head>
<body>
';
}
function top()
{
<table align="center" cellspacing="0">
<tr><td>
<a href="../index.php"><img src="../logo.png" border="0"></a>
</td>
</tr>
</table>
</center>';
}
function body()
{
echo'<center><table width="820" cellspacing="0" align="center" class="mm"> <tr>
<td align="left" valign="top">';
}
function bodyc()
{
</td>
<td align="center" valign="top">
';
}
function bodye()
{
</td>
</tr>
</table>
</center>
';
}
function menum($name)
{
<br>
<table border='0' class='forumline' cellspacing='0' width='160' cellpadding='0' ><tr>
<td class='panel' width='160'>
".$name."
</td></tr>
<tr><td class='side-body' width='160'>
";
}
function menume()
{
</td></tr></table>
';
}
function menud($name)
{
<table border='0' class='forumline' cellspacing='0' width='460' cellpadding='0' ><tr>
<td class='panel' width='460'>
".$name."
</td></tr>
<tr><td class='side-body' width='460'>
";
}
function menude()
{
</td></tr></table>
';
}
function menuf()
{
<table border='0' class='forumline' cellspacing='0' width='460' cellpadding='0' >
<tr><td class='side-body' width='460'>
";
}
function menufe()
{
</td></tr></table>
';
}
function footer($footer)
{
<center><div class='footer'><table border='0' class='forumline' cellspacing='0' width='820' cellpadding='0' ><tr>
<td class='panel' width='820'>
<center>".$footer."</center>
</td></tr></table></div></center>";
}
?>
EDIT: Cały kod php.
Ten post edytował teleimpact 25.02.2009, 21:26:31