Answer the question
In order to leave comments, you need to log in
How to give access to pydio files through the site?
There is a pydio file manager through which files are uploaded to the server in a public folder, how to give access to a folder so that a carousel from this folder can be displayed on a website.
If you specify a folder on the server where the files are located, then there is no access to them - which is probably correct
<?php $thumbs = glob("disk/data/personal/admin/test/*.{jpg,png,gif}", GLOB_BRACE); ?>
<?php
if (is_array($thumbs)) {
natcasesort($thumbs);
foreach ($thumbs as $thumb) {
?>
<li class="item">
<a class="fancybox" rel="gallery1" href="disk/data/personal/admin/test/<?php echo basename($thumb) ?>">
<img src="<?php echo $thumb ?>" class="img-circle" width="100%" alt="" />
</a>
</li>
<?php
}
} else {
echo "Sorry, no images to display!";
}
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question