Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Problem z kodem, unexpected T_VARIABLE
lukaszek016
post
Post #1





Grupa: Zarejestrowani
Postów: 1
Pomógł: 0
Dołączył: 25.01.2011

Ostrzeżenie: (0%)
-----


Witam. Mam pewien problem. Tak, wiem, że jest tego dużo na forum, jednak pomimo to ja nie znalazłem przyczyny dlaczego ten błąd się wyświetla.


Parse error: syntax error, unexpected T_VARIABLE in /home/****/public_html/******/templates/storyofglory/html/com_content/frontpage/default_item.php on line 1


To jest początek kodu tego pliku:

CODE
<?php

// no direct access
defined('_JEXEC') or die('Restricted access');
$day_first = true;
list($day, $month) = explode(' ', date('d M', strtotime($this->item->created)));
$colcount = 0;
$canEdit = ($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own'));

?>

<?php if ($this->item->state == 0) : ?>
<div class="system-unpublished">

<?php endif; ?>


Proszę o pomoc, co jest tutaj nie tak?
Go to the top of the page
+Quote Post

Posty w temacie
- lukaszek016   [PHP]Problem z kodem   25.01.2011, 21:25:51
- - wookieb   Forum nie parser.   25.01.2011, 21:30:17


Closed TopicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 04:27