How to get random image from directory using PHP

前端 未结 10 1748
我寻月下人不归
我寻月下人不归 2020-12-02 19:16

I have one directory called images/tips.

Now in that directory I have many images which can change.

I want the PHP script to read the directory, to find the

10条回答
  •  时光取名叫无心
    2020-12-02 19:34

     
  • '; } ?>

    Look at this code, use it definitely if useful for you. It loads all files from folder and prints them in above format. I made this code to use with lightbox.

提交回复
热议问题