2016-11-07 6 views
0

I have search through Parse error and I didn't see T_INCLUDE. So I can't solve this problem.Анализировать ошибка: синтаксическая ошибка, неожиданный 'включить' (T_INCLUDE) в D: learnphp друпал-7,43 сайт index.php в строке 31

Я использую .htaccess файл для PHP и я решить PEAR проблема. После этого у меня возникла еще одна проблема, как вы можете видеть в заголовке. Пожалуйста, скажите мне, как решить эту ошибку.

<?php 

// Start the session. 
session_start(); 

// Moved functions to their own file so we can use them in page files. 
include('includes/functions.php'); 

// Connect to the database. 
db_connect(); 

// If this is index.php, we won't get a path, so we need to set it. 
$path = isset($_GET['path']) ? $_GET['path'] : 'home.php'; 


// Render featured products. 
$featured_product_output = render_product(get_setting('featured_product_ids')); 

// Get some variable to use in the templates. 
$company_name = get_setting('company_name'); 
$year = date('Y'); 

// Show log in/log out links. 
$login_logout = '<a href="login.php">Log in </a>'; 
if (isset($_SESSION['user'])) { 
    $login_logout = '<a href="login.php"My account</a> | <a href="login.php?action=logout>Log out</a>'; 
} 

// Include the file that matches the path name. 
require 'C:\Program Files (x86)\DevDesktop\common\pear\PEAR.php' 
include('pages/' . $path); 

$notices = get_notices(); 

include('includes/page-template.php'); 

ответ

2

Вы забыли написать ';' в конце строки 30:
требуется 'C: \ Program Files (x86) \ DevDesktop \ common \ pear \ PEAR.php'

 Смежные вопросы

  • Нет связанных вопросов^_^