שלום.
יש לי בעיה...עשיתי עמוד קטן .... סתם להציג נתונים (בינתיים)
הנה הקוד שלו:
PHP קוד:
<?php
define ("PHP_FILE", true);
require 'header.php';
if(isset($_GET['act'])) {
if(($_GET['act'] != "idx") and ($_GET['act']!= "register") and ($_GET['act']!= "login") and ($_GET['act']!= "forums") and ($_GET['act']!= "manage") and ($_GET['act']!= "funny") and ($_GET['act']!= "mondial") and ($_GET['act']!= "pics")) {
header('location:index.php?act=idx');
exit;
} elseif($_GET['act'] != "register") {
echo <<<HTML
Text Text Text
HTML;
}else {
echo "העמוד גרגע בשלבי בניה!";
}
} else {
echo $glContent;
}
require 'footer.php';
?>
עכשיו הבעיה היא שהוא מדפיס לי את זה:
Parse error: syntax error, unexpected $end in --- on line 19
ושורה 19 זה ?> ...כלומר סוף הדף...מה לדעתכם הבעיה?