Source code. Tutorials. Software.

That's what you can do at PHPSnaps. You can share your code, write a PHP tutorial or sell your PHP scripts. If you don't want to do these, you can always browse the site.

Subscribe to our RSS feed and stay updated with the latest snaps!

Latest additions

Convert Numbers into words

Convert Numbers into words

zend configuration

zend validation

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…

ConsoleCaptcha 1.0

ConsoleCaptcha generates text based images with symbols, which enough easily can be read by humans,…

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…