0

So I have a small web server where I store my php/javascript pages.

These pages are mainly just samples and practice files, but I am looking for a way to show previews of the pages.

Currently I use the default Apache index.html, which just provides a list of all the files in the directory.

I am looking for a page that has tiles of all the web pages and providers a preview of the file.

Or anything else that you may recommend as better.

Thanks

James
  • 18,446
  • 2
  • 23
  • 39
Dan Ciborowski - MSFT
  • 6,432
  • 8
  • 50
  • 82

3 Answers3

2

Here's two that are close to what you want. You can probably customize them a bit.

PHP Directory Listing Script

PHP Directory Listing

Nilpo
  • 4,502
  • 1
  • 23
  • 38
  • Second Link has a good sample of pictures, now how can I auto generate images..... – Dan Ciborowski - MSFT Aug 29 '12 at 19:16
  • 1
    To include thumbnails of pages, you will also need to implement a method of getting those screenshots. http://stackoverflow.com/questions/757675/website-screenshots-using-php – Nilpo Aug 29 '12 at 19:48
0

there may be a browser that has an option to output a screenshot of a given page that u could run on the server when the index file is requested but u would probably want to cache the screenshot

Jay
  • 88
  • 3
0

You can use imagegrabscreen to create page preview http://php.net/manual/en/function.imagegrabscreen.php

Philippe Boissonneault
  • 3,869
  • 3
  • 25
  • 33