Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Problem z kodem, unexpected T_VARIABLE
lukaszek016
post 25.01.2011, 21:25:51
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
 
Start new topic
Odpowiedzi (1 - 1)
wookieb
post 25.01.2011, 21:30:17
Post #2





Grupa: Moderatorzy
Postów: 8 989
Pomógł: 1550
Dołączył: 8.08.2008
Skąd: Słupsk/Gdańsk




Forum nie parser.


--------------------
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 19.07.2025 - 14:44