Kod: Zaznacz cały
Parse error: syntax error, unexpected $end in /var/www/index.php on line 38tłumaczenie informacji o błedzie to Błąd składni, nieoczekiwany $koniec (kończyć; na zakończenie)
kod skryptu:
[php]
<?php
$temat=$HTTP_GET_VARS["temat"];
$abc=fopen($temat.".txt","r");
$cba=fgets($abc);
$bca=explode("/\/",$cba);
for ($a=0;$a,count($bca);$a++){
switch ($a){
case 0:$_2=$bca;
case 1:$_1=$bca;
default:echo("plik {$cba} jest uszkodzony zgłoś to webmajsterowi ([email protected])");}
echo('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"/n
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">/n
<head>/n
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />/n
/t<meta name="Description" content="'.$_2.'" />/n
/t<meta name="Keywords" content="'.$_1.'" />/n
/t<link rel="Stylesheet" type="text/css" href="style.css" />/n
/t<title>'.$temat.' - twoja nazwa</title>/n
/t</head>/n
/t<body>/n
/t/t<h1>'.$temat.'</h1>/n
/t/t<hr />/n
/t/t<div id="srodkowy">/n');
include("./".$temat."txt");
echo(' /t/t</div>/n
/t/t<div id="prawy">/n
/t/t/t<h2>Menu</h2>/n');
include(menu.txt);
echo(' /t/t</div>/n
/t/t<div id="lewy">/n
/t/t/t<h2>a</h2><br />/n
/t/t</div>/n
</body>
</html>
');
?>
[/php]
z góry dziękuje

