本文整理汇总了PHP中RequestUtil::GetServerRootUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP RequestUtil::GetServerRootUrl方法的具体用法?PHP RequestUtil::GetServerRootUrl怎么用?PHP RequestUtil::GetServerRootUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RequestUtil
的用法示例。
在下文中一共展示了RequestUtil::GetServerRootUrl方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ConnectionSetting
* file should be added instead and then copied for each install
*/
require_once 'verysimple/Phreeze/ConnectionSetting.php';
require_once "verysimple/HTTP/RequestUtil.php";
/** database connection settings */
GlobalConfig::$CONNECTION_SETTING = new ConnectionSetting();
GlobalConfig::$CONNECTION_SETTING->ConnectionString = ":3306";
GlobalConfig::$CONNECTION_SETTING->DBName = "test";
GlobalConfig::$CONNECTION_SETTING->Username = "root";
GlobalConfig::$CONNECTION_SETTING->Password = "";
GlobalConfig::$CONNECTION_SETTING->Type = "MySQL_PDO";
GlobalConfig::$CONNECTION_SETTING->Charset = "utf8";
GlobalConfig::$CONNECTION_SETTING->Multibyte = true;
// GlobalConfig::$CONNECTION_SETTING->BootstrapSQL = "SET SQL_BIG_SELECTS=1";
/** the root url of the application with trailing slash, for example http://localhost/pizzaria meveana/ */
GlobalConfig::$ROOT_URL = RequestUtil::GetServerRootUrl() . 'meveana/';
/** timezone */
// date_default_timezone_set("UTC");
/** functions for php 5.2 compatibility */
if (!function_exists('lcfirst')) {
function lcfirst($string)
{
return substr_replace($string, strtolower(substr($string, 0, 1)), 0, 1);
}
}
// if Multibyte support is specified then we need to check if multibyte functions are available
// if you receive this error then either install multibyte extensions or set Multibyte to false
if (GlobalConfig::$CONNECTION_SETTING->Multibyte && !function_exists('mb_strlen')) {
die('<html>Multibyte extensions are not installed but Multibyte is set to true in _machine_config.php</html>');
}
/** level 2 cache */
示例2: GetUri
/**
* @see IRouter::GetUri()
*/
public function GetUri()
{
if (!$this->uri) {
$this->uri = array_key_exists('_REWRITE_COMMAND', $_REQUEST) ? $_REQUEST['_REWRITE_COMMAND'] : '';
// if a root folder was provided, then we need to strip that out as well
if ($this->appRootUrl) {
$prefix = str_replace(RequestUtil::GetServerRootUrl(), '/', $this->appRootUrl);
if (substr($this->uri, 0, strlen($prefix)) == $prefix) {
$this->uri = substr($this->uri, strlen($prefix));
}
}
// strip trailing slash
while (substr($this->uri, -1) == '/') {
$this->uri = substr($this->uri, 0, -1);
}
}
return $this->uri;
}
示例3: ConnectionSetting
* file should be added instead and then copied for each install
*/
require_once 'verysimple/Phreeze/ConnectionSetting.php';
require_once "verysimple/HTTP/RequestUtil.php";
/** database connection settings */
GlobalConfig::$CONNECTION_SETTING = new ConnectionSetting();
GlobalConfig::$CONNECTION_SETTING->ConnectionString = "localhost:3306";
GlobalConfig::$CONNECTION_SETTING->DBName = "napoli";
GlobalConfig::$CONNECTION_SETTING->Username = "root";
GlobalConfig::$CONNECTION_SETTING->Password = "root";
GlobalConfig::$CONNECTION_SETTING->Type = "MySQL";
GlobalConfig::$CONNECTION_SETTING->Charset = "utf8";
GlobalConfig::$CONNECTION_SETTING->Multibyte = true;
// GlobalConfig::$CONNECTION_SETTING->BootstrapSQL = "SET SQL_BIG_SELECTS=1";
/** the root url of the application with trailing slash, for example http://localhost/administrador de productos/ */
GlobalConfig::$ROOT_URL = RequestUtil::GetServerRootUrl() . 'napoli_admin/';
/** timezone */
// date_default_timezone_set("UTC");
/** functions for php 5.2 compatibility */
if (!function_exists('lcfirst')) {
function lcfirst($string)
{
return substr_replace($string, strtolower(substr($string, 0, 1)), 0, 1);
}
}
// if Multibyte support is specified then we need to check if multibyte functions are available
// if you receive this error then either install multibyte extensions or set Multibyte to false
if (GlobalConfig::$CONNECTION_SETTING->Multibyte && !function_exists('mb_strlen')) {
die('<html>Multibyte extensions are not installed but Multibyte is set to true in _machine_config.php</html>');
}
/** level 2 cache */
示例4: ConnectionSetting
*
* The configuration settings in this file can be changed to suit the
* machine on which the app is running (ex. local, staging or production).
*
* This file should not be added to version control, rather a template
* file should be added instead and then copied for each install
*/
require_once 'verysimple/Phreeze/ConnectionSetting.php';
require_once "verysimple/HTTP/RequestUtil.php";
/**
* Normally DB connection info would go here, but phreeze builder doesn't actually
* have any back-end schema
*/
GlobalConfig::$CONNECTION_SETTING = new ConnectionSetting();
GlobalConfig::$CONNECTION_SETTING->ConnectionString = "";
GlobalConfig::$CONNECTION_SETTING->DBName = "";
GlobalConfig::$CONNECTION_SETTING->Username = "";
GlobalConfig::$CONNECTION_SETTING->Password = "";
/** the root url of the application with trailing slash, for example http://localhost/adserv/ */
GlobalConfig::$ROOT_URL = RequestUtil::GetServerRootUrl() . 'phreeze/builder/';
/** timezone */
// date_default_timezone_set("UTC");
/** functions for php 5.2 compatibility */
if (!function_exists('lcfirst')) {
function lcfirst($string)
{
return substr_replace($string, strtolower(substr($string, 0, 1)), 0, 1);
}
}
/** level 2 cache */
/** additional machine-specific settings */
示例5: ConnectionSetting
* file should be added instead and then copied for each install
*/
require_once 'verysimple/Phreeze/ConnectionSetting.php';
require_once "verysimple/HTTP/RequestUtil.php";
/** database connection settings */
GlobalConfig::$CONNECTION_SETTING = new ConnectionSetting();
GlobalConfig::$CONNECTION_SETTING->ConnectionString = "localhost:3306";
GlobalConfig::$CONNECTION_SETTING->DBName = "nomedb";
GlobalConfig::$CONNECTION_SETTING->Username = "userdb";
GlobalConfig::$CONNECTION_SETTING->Password = "passdb";
GlobalConfig::$CONNECTION_SETTING->Type = "MySQL";
GlobalConfig::$CONNECTION_SETTING->Charset = "utf8";
GlobalConfig::$CONNECTION_SETTING->Multibyte = true;
// GlobalConfig::$CONNECTION_SETTING->BootstrapSQL = "SET SQL_BIG_SELECTS=1";
/** the root url of the application with trailing slash, for example http://localhost/tarefas/ */
GlobalConfig::$ROOT_URL = RequestUtil::GetServerRootUrl() . 'questao_4_Api/';
/** timezone */
// date_default_timezone_set("UTC");
/** functions for php 5.2 compatibility */
if (!function_exists('lcfirst')) {
function lcfirst($string)
{
return substr_replace($string, strtolower(substr($string, 0, 1)), 0, 1);
}
}
// if Multibyte support is specified then we need to check if multibyte functions are available
// if you receive this error then either install multibyte extensions or set Multibyte to false
if (GlobalConfig::$CONNECTION_SETTING->Multibyte && !function_exists('mb_strlen')) {
die('<html>Multibyte extensions are not installed but Multibyte is set to true in _machine_config.php</html>');
}
/** level 2 cache */
示例6: ConnectionSetting
* file should be added instead and then copied for each install
*/
require_once 'verysimple/Phreeze/ConnectionSetting.php';
require_once "verysimple/HTTP/RequestUtil.php";
/** database connection settings */
GlobalConfig::$CONNECTION_SETTING = new ConnectionSetting();
GlobalConfig::$CONNECTION_SETTING->ConnectionString = "localhost:3306";
GlobalConfig::$CONNECTION_SETTING->DBName = "imoveis";
GlobalConfig::$CONNECTION_SETTING->Username = "root";
GlobalConfig::$CONNECTION_SETTING->Password = "";
GlobalConfig::$CONNECTION_SETTING->Type = "MySQLi";
GlobalConfig::$CONNECTION_SETTING->Charset = "utf8";
GlobalConfig::$CONNECTION_SETTING->Multibyte = true;
// GlobalConfig::$CONNECTION_SETTING->BootstrapSQL = "SET SQL_BIG_SELECTS=1";
/** the root url of the application with trailing slash, for example http://localhost/imoveis/ */
GlobalConfig::$ROOT_URL = RequestUtil::GetServerRootUrl() . 'imoveis/';
/** timezone */
// date_default_timezone_set("UTC");
/** functions for php 5.2 compatibility */
if (!function_exists('lcfirst')) {
function lcfirst($string)
{
return substr_replace($string, strtolower(substr($string, 0, 1)), 0, 1);
}
}
// if Multibyte support is specified then we need to check if multibyte functions are available
// if you receive this error then either install multibyte extensions or set Multibyte to false
if (GlobalConfig::$CONNECTION_SETTING->Multibyte && !function_exists('mb_strlen')) {
die('<html>Multibyte extensions are not installed but Multibyte is set to true in _machine_config.php</html>');
}
/** level 2 cache */
示例7: ConnectionSetting
* file should be added instead and then copied for each install
*/
require_once 'verysimple/Phreeze/ConnectionSetting.php';
require_once "verysimple/HTTP/RequestUtil.php";
/** database connection settings */
GlobalConfig::$CONNECTION_SETTING = new ConnectionSetting();
GlobalConfig::$CONNECTION_SETTING->ConnectionString = "localhost:3306";
GlobalConfig::$CONNECTION_SETTING->DBName = "estoque";
GlobalConfig::$CONNECTION_SETTING->Username = "root";
GlobalConfig::$CONNECTION_SETTING->Password = "";
GlobalConfig::$CONNECTION_SETTING->Type = "MySQL_PDO";
GlobalConfig::$CONNECTION_SETTING->Charset = "utf8";
GlobalConfig::$CONNECTION_SETTING->Multibyte = true;
// GlobalConfig::$CONNECTION_SETTING->BootstrapSQL = "SET SQL_BIG_SELECTS=1";
/** the root url of the application with trailing slash, for example http://localhost/estoque/ */
GlobalConfig::$ROOT_URL = RequestUtil::GetServerRootUrl() . 'estoque/';
/** timezone */
// date_default_timezone_set("UTC");
/** functions for php 5.2 compatibility */
if (!function_exists('lcfirst')) {
function lcfirst($string)
{
return substr_replace($string, strtolower(substr($string, 0, 1)), 0, 1);
}
}
// if Multibyte support is specified then we need to check if multibyte functions are available
// if you receive this error then either install multibyte extensions or set Multibyte to false
if (GlobalConfig::$CONNECTION_SETTING->Multibyte && !function_exists('mb_strlen')) {
die('<html>Multibyte extensions are not installed but Multibyte is set to true in _machine_config.php</html>');
}
/** level 2 cache */
示例8: ConnectionSetting
* file should be added instead and then copied for each install
*/
require_once 'verysimple/Phreeze/ConnectionSetting.php';
require_once "verysimple/HTTP/RequestUtil.php";
/** database connection settings */
GlobalConfig::$CONNECTION_SETTING = new ConnectionSetting();
GlobalConfig::$CONNECTION_SETTING->ConnectionString = "localhost:3306";
GlobalConfig::$CONNECTION_SETTING->DBName = "sistemaigcar";
GlobalConfig::$CONNECTION_SETTING->Username = "root";
GlobalConfig::$CONNECTION_SETTING->Password = "";
GlobalConfig::$CONNECTION_SETTING->Type = "MySQL";
GlobalConfig::$CONNECTION_SETTING->Charset = "utf8";
GlobalConfig::$CONNECTION_SETTING->Multibyte = true;
// GlobalConfig::$CONNECTION_SETTING->BootstrapSQL = "SET SQL_BIG_SELECTS=1";
/** the root url of the application with trailing slash, for example http://localhost/sistema_igcar/ */
GlobalConfig::$ROOT_URL = RequestUtil::GetServerRootUrl() . 'sistemaigcar/';
/** timezone */
// date_default_timezone_set("UTC");
/** functions for php 5.2 compatibility */
if (!function_exists('lcfirst')) {
function lcfirst($string)
{
return substr_replace($string, strtolower(substr($string, 0, 1)), 0, 1);
}
}
// if Multibyte support is specified then we need to check if multibyte functions are available
// if you receive this error then either install multibyte extensions or set Multibyte to false
if (GlobalConfig::$CONNECTION_SETTING->Multibyte && !function_exists('mb_strlen')) {
die('<html>Multibyte extensions are not installed but Multibyte is set to true in _machine_config.php</html>');
}
/** level 2 cache */