dbconn.php - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of dbconn.php.php
- <?
- define("BX_USE_MYSQLI", true);
- define("DBPersistent", false);
- $DBType = "mysql";
- $DBHost = "localhost";
- $DBLogin = "admin_bitrix";
- $DBPassword = "V1WGBnCw";
- $DBName = "admin_bitrix";
- $DBDebug = false;
- $DBDebugToFile = true;
- setlocale(LC_ALL, 'ru_RU.CP1251');
- setlocale(LC_NUMERIC,'C');
- define('BX_UTF', true);
- define("DELAY_DB_CONNECT", true);
- define("CACHED_b_file", 3600);
- define("CACHED_b_file_bucket_size", 10);
- define("CACHED_b_lang", 3600);
- define("CACHED_b_option", 3600);
- define("CACHED_b_lang_domain", 3600);
- define("CACHED_b_site_template", 3600);
- define("CACHED_b_event", 3600);
- define("CACHED_b_agent", 3660);
- define("CACHED_menu", 3600);
- date_default_timezone_set("Etc/GMT-3");
- define("BX_FILE_PERMISSIONS", 0644);
- define("BX_DIR_PERMISSIONS", 0755);
- @umask(~BX_DIR_PERMISSIONS);
- define("BX_DISABLE_INDEX_PAGE", true);
- setlocale(LC_ALL, 'ru_RU.CP1251');
- setlocale(LC_NUMERIC,'C');
- define('BX_UTF', true);
- ?>