Revcms problem

Status
Not open for further replies.

RetroRP

New Member
Mar 1, 2013
28
0
I got a revcms problem:

ERROR:
Code:
Parse error: parse error, expecting `T_CONSTANT_ENCAPSED_STRING' or `'('' in C:\xampp\htdocs\global.php on line 22


Global:
Code:
<?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();
   
?>
 

Weasel

👄 I'd intercept me
Nov 25, 2011
4,132
2,456
Make a file called version.php, add into that file the following:
PHP:
<?php phpinfo() ?>

Then open that file, and post a screenshot of the information.
 

Logic

Bobby Billionaire
Feb 8, 2012
748
207
I had this same exact problem and it was my PHP version. I just installed IIS 7 and used Web Platform installer to put PHP on my computer and it worked.
 

Logic

Bobby Billionaire
Feb 8, 2012
748
207
Can you list everything I need for IIS to be installed.

Use Microsoft Web Platform Installer..

- Click "Products."
- Install these:
2b5ya


- And this:
2b5z0


Make sure you keep track of your password you have to enter during the MySQL installation. That'll be for your MySQL.
 
Status
Not open for further replies.

Users who are viewing this thread

Top