Code added by apphp-snippets

View apphp-snippets's profile
List Directory Contents in PHP

This code allows to list the contents of any given directory.

Get File Extension in PHP

This code allows to pass filename in the $file_name variable and function will return file…

Change styles of First/Last Elements in CSS

Sometimes it's desirable to change a style of the first and/or last elements in a…

Adding rounded corners in CSS

You may add rounded corners to your CSS3-based elements, like a border or button. You…

Create Add to Favorites/Bookmark button in Javascript

Most today's web browsers like Firefox (Ctrl+D), Opera (Ctrl+T) and IE (Ctrl+D) provide a keyboard…

Redirect with a Timer

You can use JavaScript window.location to redirect a visitor to a required page. You may…

Copy Selected Text in JavaScript

Sometimes you have some information on your page and your visitors might want to copy…

Create Back Button with JavaScript

You may create a back button like your browser has. The following script allows the…

Get File Path Data in PHP

You may retrieve all needed file path data using PHP's built-in function pathinfo. You don't…

Automatic Password Generation in PHP

Sometimes you need to generate passwords for customers automatically when a new account is created.…

1 2 3