當前位置: 首頁>>代碼示例>>PHP>>正文


PHP SettingsPiwik::checkPiwikServerWorking方法代碼示例

本文整理匯總了PHP中Piwik\SettingsPiwik::checkPiwikServerWorking方法的典型用法代碼示例。如果您正苦於以下問題:PHP SettingsPiwik::checkPiwikServerWorking方法的具體用法?PHP SettingsPiwik::checkPiwikServerWorking怎麽用?PHP SettingsPiwik::checkPiwikServerWorking使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Piwik\SettingsPiwik的用法示例。


在下文中一共展示了SettingsPiwik::checkPiwikServerWorking方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: checkPiwikSetupForTests

function checkPiwikSetupForTests()
{
    if (empty($_SERVER['REQUEST_URI']) || $_SERVER['REQUEST_URI'] == '@REQUEST_URI@') {
        echo "WARNING: for tests to pass, you must first:\n1) Install webserver on localhost, eg. apache\n2) Make these Piwik files available on the webserver, at eg. http://localhost/dev/piwik/\n3) Install Piwik by going through the installation process\n4) Copy phpunit.xml.dist to phpunit.xml\n5) Edit in phpunit.xml the @REQUEST_URI@ and replace with the webserver path to Piwik, eg. '/dev/piwik/'\n\nTry again.\n-> If you still get this message, you can work around it by specifying Host + Request_Uri at the top of this file tests/PHPUnit/bootstrap.php. <-";
        exit(1);
    }
    $baseUrl = \Piwik\Tests\Framework\Fixture::getRootUrl();
    \Piwik\SettingsPiwik::checkPiwikServerWorking($baseUrl, $acceptInvalidSSLCertificates = true);
}
開發者ID:TensorWrenchOSS,項目名稱:piwik,代碼行數:9,代碼來源:bootstrap.php


注:本文中的Piwik\SettingsPiwik::checkPiwikServerWorking方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。