分析错误:语法错误,意外';包括';(T_INCLUDE)在第31行的D:\learnppp\drupal-7.43\site\index.php中

分析错误:语法错误,意外';包括';(T_INCLUDE)在第31行的D:\learnppp\drupal-7.43\site\index.php中,php,.htaccess,include,php-5.5,parse-error,Php,.htaccess,Include,Php 5.5,Parse Error,我已经搜索过了,但我没有看到你包括在内。所以 我解决不了这个问题 我使用php的.htaccess文件解决了这个问题。在那之后,我遇到了另一个问题,你们可以在标题中看到。请有人告诉我如何解决这个错误 <?php // Start the session. session_start(); // Moved functions to their own file so we can use them in page files. include('includes/functions.p

我已经搜索过了,但我没有看到你包括在内。所以 我解决不了这个问题

我使用php的.htaccess文件解决了这个问题。在那之后,我遇到了另一个问题,你们可以在标题中看到。请有人告诉我如何解决这个错误

<?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');
你忘了写“;”在第30行末尾:
需要“C:\ProgramFiles(x86)\DevDesktop\common\pear\pear.php”

您忘了写“;”在第30行末尾:
需要'C:\ProgramFiles(x86)\DevDesktop\common\pear\pear.php'