flightphp / core

An extensible micro-framework for PHP
https://docs.flightphp.com
MIT License
2.62k stars 409 forks source link

syntax error, unexpected T_FUNCTION #225

Closed fatihmert closed 8 years ago

fatihmert commented 8 years ago

Hello guys, I made with flightphp from localhost (by XAMPP). It is working without problems. But I was upload to my host, I gave T_FUNCTION error. How do I solve this.

It is not recognize Flight::route vs.vs.

My first codes like this;

<?php

session_start();

require 'flight/Flight.php';

include 'lib/conf.php';
require_once 'lib/meekrodb.2.3.class.php';

require 'lib/upload.php'; // verot.net upload sınıfı

include 'lib/class.phpmailer.php';

//Veritabanı bağlantısı
Flight::register("db","MeekroDB",array(
    HOST,DBUsr,DBPsw,DBName
));

//Türkçe Karakter sorunu
Flight::db()->query("SET NAMES UTF8");

//Tam tarih
date_default_timezone_set('Europe/Istanbul');

//Türkçe Tarih
setlocale(LC_TIME, 'tr_TR');

//meta > author
define("MetaAuthor","..");

include 'lib/func.php';

/*POST process*/
Flight::route('POST /proc/contact',function(){..

Now codes host is here: http://be-vel.com/

fatihmert commented 8 years ago

I solve sorry, Problem hasn't in flight sorry. Flight not recommend PHP 5.3, I was learn after my hosting php version 5.3