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(){..
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;
Now codes host is here: http://be-vel.com/