[Help] Error php ???

Lishaoran

New Member
Jul 12, 2012
6
0
Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in E:\usbwebserver\root\global.php on line 22

I don't know how to fix it , but i know this problem is in global.php .......anyway, i didn't change anything code source in there..............

And i started successful Phoenix 3.7.1 :D , wait to fix this problem ^^" anyone help pls, thanks !
 

Lishaoran

New Member
Jul 12, 2012
6
0
<?php

// Special Functions

function filter($var)
{
return mysql_real_escape_string(stripslashes(htmlspecialchars($var)));
}

if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
if(isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; }
error_reporting(E_ALL ^ E_NOTICE);

define('A', 'app/');
define('I', 'interfaces/');
define('M', 'management/');
define('T', 'tpl/');


//REVOLUTION

use Revolution as Rev;


//INTERFACES

require_once A . I . 'interface.core.php';

require_once A . I . 'interface.engine.php';

require_once A . I . 'interface.users.php';

require_once A . I . 'interface.template.php';

//TPL

require_once A . T . I . 'interface.forms.php';

//HTML

require_once A . T . I . 'interface.html.php';

//CSS

require_once A . T . I . 'interface.css.php';

//JS

require_once A . T . I . 'interface.js.php';


//CLASSES

//app

require_once A . 'class.core.php';

require_once A . 'class.engine.php';

require_once A . 'class.users.php';

require_once A . 'class.template.php';

//MANAGEMENT

require_once A . M . 'config.php';

require_once A . M . 'recaptchalib.php';

//TPL

require_once A . T . 'class.forms.php';

//HTML

require_once A . T . 'class.html.php';

//CSS

require_once A . T . 'class.css.php';

//JS

require_once A . T . 'class.js.php';


//OBJ

$core = new Rev\core();

$engine = new Rev\engine();

$users = new Rev\users();

$template = new Rev\template();

$template->form = new Rev\forms();

$template->html = new Rev\html();

$template->css = new Rev\css();

$template->js = new Rev\js();

//START

session_start();

$engine->Initiate();

$template->Initiate();

?>

Here sir :)
 

Lishaoran

New Member
Jul 12, 2012
6
0
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in E:\usbwebserver\root\global.php on line 89

Parse error: syntax error, unexpected T_STRING in E:\usbwebserver\root\global.php on line 89

well another problem :D
 

Users who are viewing this thread

Top