par
marli » 23 déc. 2005, 19:03
1er! pordon pour mon francais mais Je apprenais.
le site est
www.solarnova.co.uk/politica si vous voudrez il regardera.
j'ai un erreur
Parse error: parse error, unexpected $ in /usr/local/DATA/WEBSITES/2004-09/henry/cgi-bin/forum.php on line 61
MAIS le PHP est fini a ligne 56 .
j'ai eu cet erreur avent.
il'ai été un echo ne ferme pas " "
MAIS tout le echo est fermé
ici le code
<?php
/*-----------------(COMMENCE PHP)--------------*/
$from=$_GET[from];
/*-----------------($_POST /$_GET)----------*/
$htmlhead="<HTML>\n
<HEAD>\n<TITLE>The Clanwars System</TITLE>\n</HEAD>\n<body background=\"/politica/images/cwback.jpg\">
<table><tr>";
echo"$htmlhead";
echo"WARNING UNDER CONTRUCTION!! threads and post may be deleted without notice(or reason)<BR></tr><tr>";
ECHO"welcome to the forum ";ECHO($_COOKIE['user']);echo", feel free to discuss the site and the game<BR>";
/*--(prendre threads)--*/
/*--(database...threads, thread ID,thread nom)---*/
if (!$file = fopen('forumt.txt', 'rb')) {
echo 'Error whilst opening the file.';
} else {
$threads = array();
while (!feof($file)) {
$theads[]= fgets($file);
}
fclose($file);
/*-------------------trim file----*/
$max = count($threads) - 1;
$i = 0;
while($i<=$max) :
$threads2[]=trim($threads[$i],"\x00..\x1F");
$i++;
endwhile;
/*-----------(list threads/posts)---------*/
echo"</tr><tr>";
echo"<td BGCOLOR\=gray>THREAD NO</td><td>THREAD</td></tr><tr>";
/*
$i = 0;
while($i<=$max) :
echo"<td BGCOLOR=gray>$threads2[$i]</td>";
$i++;
echo"<td>$threads2[$i]</td></tr><tr>";
$i++;
endwhile;
*/
/*-------------(FINI PHP)--------------------*/
php?>
</tr>
<P>
</body>
</HTML>
1er! pordon pour mon francais mais Je apprenais.
le site est www.solarnova.co.uk/politica si vous voudrez il regardera.
j'ai un erreur
[quote]Parse error: parse error, unexpected $ in /usr/local/DATA/WEBSITES/2004-09/henry/cgi-bin/forum.php on line 61[/quote]
MAIS le PHP est fini a ligne 56 .
j'ai eu cet erreur avent.
il'ai été un echo ne ferme pas " "
MAIS tout le echo est fermé
ici le code
[php]<?php
/*-----------------(COMMENCE PHP)--------------*/
$from=$_GET[from];
/*-----------------($_POST /$_GET)----------*/
$htmlhead="<HTML>\n
<HEAD>\n<TITLE>The Clanwars System</TITLE>\n</HEAD>\n<body background=\"/politica/images/cwback.jpg\">
<table><tr>";
echo"$htmlhead";
echo"WARNING UNDER CONTRUCTION!! threads and post may be deleted without notice(or reason)<BR></tr><tr>";
ECHO"welcome to the forum ";ECHO($_COOKIE['user']);echo", feel free to discuss the site and the game<BR>";
/*--(prendre threads)--*/
/*--(database...threads, thread ID,thread nom)---*/
if (!$file = fopen('forumt.txt', 'rb')) {
echo 'Error whilst opening the file.';
} else {
$threads = array();
while (!feof($file)) {
$theads[]= fgets($file);
}
fclose($file);
/*-------------------trim file----*/
$max = count($threads) - 1;
$i = 0;
while($i<=$max) :
$threads2[]=trim($threads[$i],"\x00..\x1F");
$i++;
endwhile;
/*-----------(list threads/posts)---------*/
echo"</tr><tr>";
echo"<td BGCOLOR\=gray>THREAD NO</td><td>THREAD</td></tr><tr>";
/*
$i = 0;
while($i<=$max) :
echo"<td BGCOLOR=gray>$threads2[$i]</td>";
$i++;
echo"<td>$threads2[$i]</td></tr><tr>";
$i++;
endwhile;
*/
/*-------------(FINI PHP)--------------------*/
php?>
</tr>
<P>
</body>
</HTML>[/php]