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.



Your result can be seen below.

Result of php executing





Full code of dbconn.php.php

  1. <?
  2. define("BX_USE_MYSQLI", true);
  3. define("DBPersistent", false);
  4. $DBType = "mysql";
  5. $DBHost = "localhost";
  6. $DBLogin = "admin_bitrix";
  7. $DBPassword = "V1WGBnCw";
  8. $DBName = "admin_bitrix";
  9. $DBDebug = false;
  10. $DBDebugToFile = true;
  11. setlocale(LC_ALL, 'ru_RU.CP1251');
  12. setlocale(LC_NUMERIC,'C');
  13.  
  14. define('BX_UTF', true);
  15.  
  16. define("DELAY_DB_CONNECT", true);
  17. define("CACHED_b_file", 3600);
  18. define("CACHED_b_file_bucket_size", 10);
  19. define("CACHED_b_lang", 3600);
  20. define("CACHED_b_option", 3600);
  21. define("CACHED_b_lang_domain", 3600);
  22. define("CACHED_b_site_template", 3600);
  23. define("CACHED_b_event", 3600);
  24. define("CACHED_b_agent", 3660);
  25. define("CACHED_menu", 3600);
  26.  
  27. date_default_timezone_set("Etc/GMT-3");
  28.  
  29. define("BX_FILE_PERMISSIONS", 0644);
  30. define("BX_DIR_PERMISSIONS", 0755);
  31. @umask(~BX_DIR_PERMISSIONS);
  32. define("BX_DISABLE_INDEX_PAGE", true);
  33. setlocale(LC_ALL, 'ru_RU.CP1251');
  34. setlocale(LC_NUMERIC,'C');
  35. define('BX_UTF', true);
  36. ?>
  37.  
File Description
  • dbconn.php
  • PHP Code
  • 19 Feb-2021
  • 928 Bytes
You can Share it: