Witam
mam problem po wgraniu na serwer dwóch plików index.php i config.php wyskakuje błąd: Parse error: syntax error, unexpected T_STRING in /home/users/richard/www/ksiega/index.php on line 44 czyli bład jest tutaj include('config.php');. ktoś ma pomysł jak to rozwiązać ?
Plik index.php
<?php
if (isset($_POST['haslo'])) {
Header('Location: index.php?show=admin&zlehaslo=yes'); }
if (isset($_GET['show'])) $show=$_GET['show']; else $show=''; if (isset($_GET['show'])) $show=$_POST['show'];
if ($show=='logout')
{
}
//-----------------------------------------------
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 2.0//EN" " TBD">
<html xmlns="http://www.w3.org//2002/06/xhtml12" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-2" />
<link rel="Stylesheet" href="style.css" type="text/css" />
<title>Księga Gości</title>
</head>
<body>
<div class="tytul"><br />Ksiega Gości</div>
<div class="podtytul">Zapraszam wszystkich do wpisania sie do mojej
księgi gości.<br /><br /></div>
<hr />
<table border="0" width="60&"
style="margin-left:auto;margin-right:auto;">
<tr><td>
<a href="index.php" class="m">Lista wpisów</a> |
<a href="index.php?show=dodaj" class="m">Dodaj wpis do księgi
gości</a> |
<a href="index.php?show=admin" class="m">Panel administracyjny</a>
<?php
//-------------------------------------------------------------
include('config.php');
include('funkcje.php');
if (isset($_COOKIE['haslo']) &&
$_COOKIE['haslo']==$config['haslo_admin'])
echo ' | <a href="index.php?show=logout"
class="m">Wyloguj</a>';
echo '<hr />';
if ($show=='admin') include('panel_admin.php');
elseif ($show=='dodaj') include('panel_dodaj.php');
else include('panel_lista.php');
//-------------------------------------------------------------
?>
</td></tr>
</table>
<hr />
<div class="stopka'>Copyright © 2004 by Jaś Kowalski</div>
</body>
</html>
plik config.php
<?php
$config['serwer']='adres serwera';
$config['uzytkownik']='użytkownik';
$config['haslo']='tajne';
$config['baza']='moja_baza';
$config['tabela']='ksiega1';
$config['haslo_admin']='tajne';
$config['poile']=10;
$config['tworzenie_bazy']='
CREATE TABLE '.$config['tabela'].'(
nazwisko VARCHAR(35),
email VARCHAR(40),
data_wpisu DATETIME,
tresc BLOB,
id INT NOT NULL AUTO_INCREMENT,
PRIMARY KEY(id)
)';
?>
Ten post edytował erix 2.06.2009, 16:14:22
Powód edycji: [erix] przeniosłem