Em chỉ mới tìm hiểu lung tung về php nhưng cho em hỏi giờ người ta còn viết php như vầy nữa không ạ. Hay nó được chuyển mới như thế nào các anh các chị giúp em phát…sao nó lãi báo lỗi @@
<?php
//Database Constants
defined('DB_SERVER') ? null : define("DB_SERVER","localhost");//define our database server
defined('DB_USER') ? null : define("DB_USER","root"); //define our database user
defined('DB_PASS') ? null : define("DB_PASS",""); //define our database Password
defined('DB_NAME') ? null : define("DB_NAME","studenttransdb"); //define our database Name
$thisFile = str_replace('\\', '/', __FILE__);
$docRoot =$_SERVER['DOCUMENT_ROOT'];
$webRoot = str_replace(array($docRoot, 'includes/config.php'), '', $thisFile);
$srvRoot = str_replace('config/config.php','', $thisFile);
define('WEB_ROOT', $webRoot);
define('SRV_ROOT', $srvRoot);
?>
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?