Categories
JavaScript

webLab – Create your own php-html lab

Since I opened the lab, few people asked to me how it works.

Today I’m going to answer that and also I will release the code that makes the lab possible.

The lab is a really simple script:

  1. Reads from a given path all the files and paths that are inside.
  2. The list is shorted by date of creation (in this way we have the newest script in the top).
  3. We only display the folders that have a readme.txt file inside.
  4. If inside the folder there’s a screenshot or a .zip or index.php or index.html we show this options.

Of course right now only works with HTML and PHP, but for me is enough.

For a new script to appear in the list must be have this requirements:

/folderExample/
readme.txt (mandatory, you can ad as many new fields as you wish)
screenshot.png (optional)
index.php or index.html (example for the running script, optional)
folderExample.zip (download for the script, optional)

Improvements that I have in mind:

  • Pagination
  • RSS

Version: 0.1
Author: Chema Garrido
License: GPL v3

Demo in lab.neo22s.com
Download