config-example.php 761 B

123456789101112131415161718
  1. <?php
  2. ini_set('display_errors', 1);
  3. ini_set('display_startup_errors', 1);
  4. error_reporting(E_ALL);
  5. $config = [
  6. 'host' => 'localhost', // mysql hostname
  7. 'user' => 'login', // mysql username
  8. 'passwd' => 'password', // mysql password
  9. 'db' => 'database', // database name
  10. 'port' => '3306', // mysql port
  11. 'basedir' => '/home/user/public_html/obrazki/', // filesystem path (keep the trailing /)
  12. 'basepath' => '/obrazki/', // webroot path for scripts (keep the trailing /)
  13. 'imagepath' => '/obrazki/', // webroot path for image dirs (keep the trailing /)
  14. 'thumbnailpath' => '/obrazki/miniatury/', // webroot path for thumbnails (keep the trailing / and do not change for now)
  15. 'thumbnailsize' => 70, // thumbnail width in pixels, do not change for now)
  16. ];
  17. ?>