Code solutions to PHP, JS, CSS

Spread your code soluces to the world

Love me

Search results for : folders    (2)

Simple method : listing files from a directory (php)

Here's my simple method for listing files from a directory. In this example I added the natural sort and the file sizes in KB to show how to combine tables and serialized values.

Create virtual folders using htaccess (htaccess)

These 3 lines of code for .htaccess create virtual folders. An URL like will be understood by the server as