Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
**Example of use:**
<a href="http://www.php.net/manual/en/index.php"><img src="<?php echo get_favicon('http://www.php.net/manual/en/index.php') ?>" alt="Favicon" title="See PHP documentation" width="16" height="16" /></a>
0
1687
posted 12 years ago by phpdev
Helps to find out browser version and type your website visitor is using.
0
1010
posted 12 years ago by apphp-snippets
This code allows to get the IP address from which the user is viewing the current page.
0
1241
posted 12 years ago by apphp-snippets
This is a hook_block_info and hook_block_view template that will allow you to quickly create blocks in a Drupal module. When you use this all you have to do is create a directory "blocks" in the module and then create block.block_name.php in the dire...
0
954
posted 12 years ago by brownrl
Script per copiar els fitxers canviats en una revisió git al servidor remot via sftp, using PHP Secure Communications Library (phpseclib): http://sourceforge.net/projects/phpseclib/.
Útil per usar amb 1and1.
0
1109
posted 12 years ago by marcniko
The following codes populate the country list into dropdown box based on browser's languages. The country information is getting from geolocation.com
0
1084
posted 12 years ago by Hexahow
Checks if two given arrays equal each other as php doesn't have a built in function for this.
0
945
posted 12 years ago by MaxHudson
If you are using the [TimThumb](http://code.google.com/p/timthumb/ "TimThumb on Google Code") script with a URL the contains tildes (~) and images are breaking, here is the fix...
I did not create this snippet but found it extremely useful so I th...
0
1141
posted 12 years ago by tacudtap
For some reason tidy inserts new lines before/after <
[wp_nav_menu](http://codex.wordpress.org/Function_Reference/wp_nav_menu,"wp_nav_menu")
[in_category](http://codex.wordpress.org/Function_Ref...
0
971
posted 12 years ago by hell0world