Configuring directories

# Custom script location

Let's imagine that instead of putting dsg.php file in the same directory as your PHP file, you prefer to put it one level above, inside libraries folder:

/libraries
  dsg.php
/htdocs
  /ds_galleries
  /css
  /images
  /js
  index.php

You can then include the dsg.php script in your index.php file like so:

<?php include '../libraries/dsg.php'; ?>

If you wish to have your original images inside a different folder, let's say application_screenshots, you should use the $dsg_gallery_dir variable:

<?php
  // set gallery dir to custom value
  $dsg_gallery_dir = 'application_screenshots';
?>
...
<?php include 'dsg.php'; ?>

See also

Custom thumbnails directory , Custom previews directory