Skip to content

Cycle through image files in a declared directory for informative displays.

License

Notifications You must be signed in to change notification settings

scottgriv/php-display_solution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Badge
GitHub Badge Email Badge BuyMeACoffee Badge
Bronze


Display Solution

Cycle through image files in a declared directory for informative displays.


Table of Contents

Getting Started

Usage

  • Go to the full Display_Solution.php web server address in your web browser.

    ex. http://localhost/Folder/Display_Solution.php

  • The naming scheme for the images will be an incremental number in order to control the sequence of the images.

    ex. 1.jpg, 2.jpg, 3.jpg....10.jpg, etc.

Deployment

Edit the config.ini file with the necessary parameters to run, ex:

  • directory = the directory the images folder will be in with backward slashes '\'
  • countDirect = the same directory as the 'directory' parameter above, except the folder slashes are forward slashes '/' not back slashes
  • extension = the file extension for the images, this must be the same format for all the images ex. .jpg, .jpeg, .png
  • seconds = the number of seconds before the script will display the next image

A finished example of the config.ini should look something similar to this (you can change the image path to use remote folders, by default it uses the images folder in the script root directory):

[application]
directory = images
countDirect = images
extension = .jpg
seconds = 7

Customization

  • Go to Display_Solution.php and change the width and height in the following code to adjust the size of the slides (i.e. 100% for full screen):
<img src="docs/images/logo.jpg" width="100%" height="100%" id="rotator"/>
  • Feel free to add your company's logo by replacing the docs/logo.jpg file (which indicates the start of the slide show).

Resources

License

This project is released under the terms of the MIT License, which permits use, modification, and distribution of the code, subject to the conditions outlined in the license.

  • The MIT License provides certain freedoms while preserving rights of attribution to the original creators.
  • For more details, see the LICENSE file in this repository. in this repository.

Credits

Author: Scott Grivner
Email: scott.grivner@gmail.com
Website: scottgrivner.dev
Reference: Main Branch


About

Cycle through image files in a declared directory for informative displays.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages