Форум программистов, компьютерный форум, киберфорум
Joomla
Войти
Регистрация
Восстановить пароль
Карта форума Темы раздела Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 4.57/14: Рейтинг темы: голосов - 14, средняя оценка - 4.57
0 / 0 / 0
Регистрация: 17.08.2011
Сообщений: 4
1

PHP Parse error: syntax error, unexpected '>' in /home/vhosts/izvdgpu.ru

18.08.2011, 11:22. Показов 2803. Ответов 4
Метки нет (Все метки)

Author24 — интернет-сервис помощи студентам
в логе ошибка синтаксиса.
PHP Parse error: syntax error, unexpected '>' in /home/vhosts/izvdgpu.ru
/httpdocs/libraries/joomla/database/table/content.php on line 199.
Вот код:
PHP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<?php
/**
* @version $Id: content.php 14401 2010-01-26 14:10:00Z louis $
* @package Joomla.Framework
* @subpackage Table
* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
 
// Check to ensure this file is within the rest of the framework
defined('JPATH_BASE') or die();
 
 
/**
* Content table
*
* @package Joomla.Framework
* @subpackage Table
* @since 1.0
*/
class JTableContent extends JTable
{
/** @var string This is our number release */
var $number_release = null;
/** @var int Primary key */
var $id = null;
/** @var string */
var $title = null;
/** @var string */
var $alias = null;
/** @var string */
var $title_alias = null;
/** @var string */
var $introtext = null;
/** @var string */
var $fulltext = null;
/** @var int */
var $state = null;
/** @var int The id of the category section*/
var $sectionid = null;
/** @var int DEPRECATED */
var $mask = null;
/** @var int */
var $catid = null;
/** @var datetime */
var $created = null;
/** @var int User id*/
var $created_by = null;
/** @var string An alias for the author*/
var $created_by_alias = null;
/** @var datetime */
var $modified = null;
/** @var int User id*/
var $modified_by = null;
/** @var boolean */
var $checked_out = 0;
/** @var time */
var $checked_out_time = 0;
/** @var datetime */
var $publish_up = null;
/** @var datetime */
var $publish_down = null;
/** @var string */
var $images = null;
/** @var string */
var $urls = null;
/** @var string */
var $attribs = null;
/** @var int */
var $version = null;
/** @var int */
var $parentid = null;
/** @var int */
var $ordering = null;
/** @var string */
var $metakey = null;
/** @var string */
var $metadesc = null;
/** @var string */
var $metadata = null;
/** @var int */
var $access = null;
/** @var int */
var $hits = null;
 
/**
* @param database A database connector object
*/
function __construct( &$db ) {
parent::__construct( '#__content', 'id', $db );
}
 
/**
* Overloaded check function
*
* @access public
* @return boolean
* @see JTable::check
* @since 1.5
*/
function check()
{
/*
TODO: This filter is too rigorous,need to implement more configurable solution
// specific filters
$filter = & JFilterInput::getInstance( null, null, 1, 1 );
$this->introtext = trim( $filter->clean( $this->introtext ) );
$this->fulltext = trim( $filter->clean( $this->fulltext ) );
*/
 
 
if(empty($this->title)) {
$this->setError(JText::_('Article must have a title'));
return false;
}
 
if(empty($this->alias)) {
$this->alias = $this->title;
}
$this->alias = JFilterOutput::stringURLSafe($this->alias);
 
if(trim(str_replace('-','',$this->alias)) == '') {
$datenow =& JFactory::getDate();
$this->alias = $datenow->toFormat("%Y-%m-%d-%H-%M-%S");
}
 
if (trim( str_replace( '&nbsp;', '', $this->fulltext ) ) == '') {
$this->fulltext = '';
}
 
if(empty($this->introtext) && empty($this->fulltext)) {
$this->setError(JText::_('Article must have some text'));
return false;
}
 
// clean up keywords -- eliminate extra spaces between phrases
// and cr (\r) and lf (\n) characters from string
if(!empty($this->metakey)) { // only process if not empty
$bad_characters = array("\n", "\r", "\"", "<", ">"); // array of characters to remove
$after_clean = JString::str_ireplace($bad_characters, "", $this->metakey); // remove bad characters
$keys = explode(',', $after_clean); // create array using commas as delimiter
$clean_keys = array();
foreach($keys as $key) {
if(trim($key)) { // ignore blank keywords
$clean_keys[] = trim($key);
}
}
$this->metakey = implode(", ", $clean_keys); // put array back together delimited by ", "
}
 
// clean up description -- eliminate quotes and <> brackets
if(!empty($this->metadesc)) { // only process if not empty
$bad_characters = array("\"", "<", ">");
$this->metadesc = JString::str_ireplace($bad_characters, "", $this->metadesc);
}
 
return true;
}
 
/**
* Converts record to XML
* @param boolean Map foreign keys to text values
*/
function toXML( $mapKeysToText=false )
{
$db =& JFactory::getDBO();
 
if ($mapKeysToText) {
$query = 'SELECT name'
. ' FROM #__sections'
. ' WHERE id = '. (int) $this->sectionid
;
$db->setQuery( $query );
$this->sectionid = $db->loadResult();
 
$query = 'SELECT name'
. ' FROM #__categories'
. ' WHERE id = '. (int) $this->catid
;
$db->setQuery( $query );
$this->catid = $db->loadResult();
 
$query = 'SELECT name'
. ' FROM #__users'
. ' WHERE id = ' . (int) $this->created_by
;
$db->setQuery( $query );
$this->created_by = $db->loadResult();
}
 
return parent::toXML( $mapKeysToText );
}
}
>



Где может быть ошибка здесь???
0
Programming
Эксперт
94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
18.08.2011, 11:22
Ответы с готовыми решениями:

IPB Parse error: syntax error, unexpected T_STRING
Parse error: syntax error, unexpected T_STRING in...

Parse error: syntax error, unexpected T_STRING in W:\home\.php on line 82
&lt;?php class index { private function indexjs() { ?&gt; &lt;script type=&quot;text/javascript&quot;...

Parse error: syntax error, unexpected '*' in /home/u241512765/public_html/wp-config.php on line 28
Заранее извиняюсь за глупый вопрос. Но я совсем новичек. Никак не могу справиться с ошибкой(я...

Parse error: syntax error, unexpected $end in /home/u371876453/public_html/QWEQWE.PHP on line 21
выдает ошибку скрипта вот такую. Parse error: syntax error, unexpected $end in...

4
4 / 4 / 0
Регистрация: 18.08.2011
Сообщений: 39
18.08.2011, 11:24 2
Смелый малый.
Перед глазами в середине.
0
0 / 0 / 0
Регистрация: 17.08.2011
Сообщений: 4
18.08.2011, 12:35  [ТС] 3
Цитата Сообщение от anonymou5 Посмотреть сообщение
Смелый малый.
Перед глазами в середине.
Где именно друг! если знаешь канеш??
0
4 / 4 / 0
Регистрация: 18.08.2011
Сообщений: 39
18.08.2011, 14:37 4
не нашел еще?
0
0 / 0 / 0
Регистрация: 17.08.2011
Сообщений: 4
18.08.2011, 14:49  [ТС] 5
Цитата Сообщение от anonymou5 Посмотреть сообщение
не нашел еще?
нашел друг. не в середине, а в конце.

Добавлено через 2 минуты
Здесь можешь посмотреть ошибку:

PHP/HTML
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<script language="javascript" type="text/javascript">
 
    function tableOrdering( order, dir, task )
    {
        var form = document.adminForm;
 
        form.filter_order.value     = order;
        form.filter_order_Dir.value = dir;
        document.adminForm.submit( task );
    }
</script>
<form action="<?php echo $this->action; ?>" method="post" name="adminForm">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<?php if ($this->params->get('filter') || $this->params->get('show_pagination_limit')) : ?>
<tr>
    <td colspan="5">
        <table>
        <tr>
        <?php if ($this->params->get('filter')) : ?>
            <td align="left" width="60%" nowrap="nowrap">
                <?php echo JText::_($this->params->get('filter_type') . ' Filter').'&nbsp;'; ?>
                <input type="text" name="filter" value="<?php echo $this->escape($this->lists['filter']);?>" class="inputbox" onchange="document.adminForm.submit();" />
            </td>
        <?php endif; ?>
        <?php if ($this->params->get('show_pagination_limit')) : ?>
            <td align="right" width="40%" nowrap="nowrap">
            <?php
                echo '&nbsp;&nbsp;&nbsp;'.JText::_('Display Num').'&nbsp;';
                echo $this->pagination->getLimitBox();
            ?>
            </td>
        <?php endif; ?>
        </tr>
        </table>
    </td>
</tr>
<?php endif; ?>
<?php if ($this->params->get('show_headings')) : ?>
<tr>
    <td class="sectiontableheader<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" align="right" width="5%">
        <?php echo JText::_('Num'); ?>
    </td>
    <?php if ($this->params->get('show_title')) : ?>
    <td class="sectiontableheader<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
        <?php echo JHTML::_('grid.sort',  'Item Title', 'a.title', $this->lists['order_Dir'], $this->lists['order'] ); ?>
    </td>
    <?php endif; ?>
    <?php if ($this->params->get('show_date')) : ?>
    <td class="sectiontableheader<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" width="25%">
        <?php echo JHTML::_('grid.sort',  'Date', 'a.created', $this->lists['order_Dir'], $this->lists['order'] ); ?>
    </td>
    <?php endif; ?>
    <?php if ($this->params->get('show_author')) : ?>
    <td class="sectiontableheader<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>"  width="20%">
        <?php echo JHTML::_('grid.sort',  'Author', 'author', $this->lists['order_Dir'], $this->lists['order'] ); ?>
    </td>
    <?php endif; ?>
    <?php if ($this->params->get('show_hits')) : ?>
    <td align="center" class="sectiontableheader<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" width="5%" nowrap="nowrap">
        <?php echo JHTML::_('grid.sort',  'Hits', 'a.hits', $this->lists['order_Dir'], $this->lists['order'] ); ?>
    </td>
    <?php endif; ?>
</tr>
<?php endif; ?>
<?php foreach ($this->items as $item) : ?>
<tr class="sectiontableentry<?php echo ($item->odd +1 ) . $this->escape($this->params->get('pageclass_sfx')); ?>">
    <td align="right">
        <?php echo $this->pagination->getRowOffset( $item->count ); ?>
    </td>
    <?php if ($this->params->get('show_title')) : ?>
    <?php if ($item->access <= $this->user->get('aid', 0)) : ?>
    <td>
        <a href="<?php echo $item->link; ?>">
            <?php echo $this->escape($item->title); ?></a>
            <?php $this->item = $item; echo JHTML::_('icon.edit', $item, $this->params, $this->access) ?>
    </td>
    <?php else : ?>
    <td>
        <?php
            echo $this->escape($item->title).' : ';
            $link = JRoute::_('index.php?option=com_user&view=login');
            $returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catslug, $item->sectionid), false);
            $fullURL = new JURI($link);
            $fullURL->setVar('return', base64_encode($returnURL));
            $link = $fullURL->toString();
        ?>
        <a href="<?php echo $link; ?>">
            <?php echo JText::_( 'Register to read more...' ); ?></a>
    </td>
    <?php endif; ?>
    <?php endif; ?>
    <?php if ($this->params->get('show_date')) : ?>
    <td>
        <?php echo $item->created; ?>
    </td>
    <?php endif; ?>
    <?php if ($this->params->get('show_author')) : ?>
    <td>
        <?php echo $this->escape($item->created_by_alias) ? $this->escape($item->created_by_alias) : $this->escape($item->author); ?>
    </td>
<?php endif; ?>
            <?php echo $this->escape($item->created_by_alias) ? $this->escape($item->created_by_alias) : $this->escape($item->number_release); ?>
    </td>
    <?php endif; ?>
            <?php if ($this->params->get('show_hits')) : ?>
<td align="center">
        <?php echo $this->escape($item->hits) ? $this->escape($item->hits) : '-'; ?>
    </td>
    <?php endif; ?>
<?php endforeach; ?>
<?php if ($this->params->get('show_pagination')) : ?>
<tr>
    <td colspan="5">&nbsp;</td>
</tr>
<tr>
    <td align="center" colspan="4" class="sectiontablefooter<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
        <?php echo $this->pagination->getPagesLinks(); ?>
    </td>
</tr>
<tr>
    <td colspan="5" align="right">
        <?php echo $this->pagination->getPagesCounter(); ?>
    </td>
</tr>
<?php endif; ?>
</table>
 
<input type="hidden" name="id" value="<?php echo $this->category->id; ?>" />
<input type="hidden" name="sectionid" value="<?php echo $this->category->sectionid; ?>" />
<input type="hidden" name="task" value="<?php echo $this->lists['task']; ?>" />
<input type="hidden" name="filter_order" value="" />
<input type="hidden" name="filter_order_Dir" value="" />
<input type="hidden" name="limitstart" value="0" />
<input type="hidden" name="viewcache" value="0" />
</form>
0
18.08.2011, 14:49
IT_Exp
Эксперт
87844 / 49110 / 22898
Регистрация: 17.06.2006
Сообщений: 92,604
18.08.2011, 14:49
Помогаю со студенческими работами здесь

Parse error: syntax error, unexpected T_ELSE in /home/figaces6/public_html/catalog.php on line 28
вот добавил одно условие и вылезла син.ошибка т.к. я с телефона уже около часа не могу её найти ...

Parse error: syntax error, unexpected T_STRING in Z:\home\gostin\www\registr_bd.php on line 7
Подскажите - в чём ошибка? &lt;?php $ime= $_POST; $familia= $_POST; $otchestvo=...

Parse error: syntax error, unexpected '<' in Z:\home\dle\www\engine\inc\test_adm.php on line 3
Всем привет! Стараюсь разобраться, но иногда торможу. наводку дайте пожалуйста. Не проникся ещё...

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in Z:\home\test\www\111.php on line 37
Прошу подсказать где ошибка... &lt;?php require_once('../Connections/ppp.php'); ?&gt; &lt;?php if...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
5
Ответ Создать тему
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2024, CyberForum.ru