This code allows to list the contents of any given directory.
By apphp-snippets
This code allows to pass filename in the $file_name variable and function will return file extension only.
Sometimes it's desirable to change a style of the first and/or last elements in a container. You can do this by manually applyin…
You may add rounded corners to your CSS3-based elements, like a border or button. You can change the radius to increase or decre…
Most today's web browsers like Firefox (Ctrl+D), Opera (Ctrl+T) and IE (Ctrl+D) provide a keyboard shortcuts to enable users boo…
You can use JavaScript window.location to redirect a visitor to a required page. You may have seen this feature used by sites wi…
Sometimes you have some information on your page and your visitors might want to copy it. The easiest way is to provide a mechan…
You may create a back button like your browser has. The following script allows the visitor to press a button and returns the hi…
You may retrieve all needed file path data using PHP's built-in function pathinfo. You don't need to create your own functions o…
Sometimes you need to generate passwords for customers automatically when a new account is created. This code allows you choose …
Want to share your source code? Create your account and join our community!