Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 65 66 67 68 69 ... 152
To enable error reporting for *ALL* error messages including every error level (including E_STRICT, E_NOTICE etc.), simply use:
1 221 posted 10 years ago by Hepamin
Very usefull translation adapter for simple interfaces where creating translation files is just a bit to much.
1 261 posted 10 years ago by RonXS
Use this to fix Pagination Problem on query posts page. This will fix the problem where clicking on the next page keeps showing same posts
1 279 posted 10 years ago by Farhan
Nice and short
0 262 posted 10 years ago by Blerx
Takes the ID of a page, then displays a list of child pages with thumbnails and page titles. The thumbnail is generated from the 'featured image' of the particular child page.
2 385 posted 10 years ago by martinlucas
0 241 posted 10 years ago by rliverman
2 257 posted 10 years ago by mb2o
This snippet saves in the $return array all the names of the fields that a content type has added with CCK, has to be installed the cck module.
0 526 posted 10 years ago by JohnnyGamba
Script used to access the Envato API, and get extra details using Curl. This script will only work on PHP5 on a Linux hosting account (with safe mode / openbasedir disabled). Will need slight adjustment if trying to run it otherwise. You are w...
1 397 posted 10 years ago by dtbaker
0 269 posted 10 years ago by dmertl
CSS: <pre><code>div.pagination { padding: 3px; margin: 3px; } div.pagination a { padding: 2px 5px 2px 5px; margin: 2px; border: 1px solid #AAAADD; text-decoration: none; /* no underline */ color: #000099; } div.pagination a:...
1 287 posted 10 years ago by Alexxandar
0 240 posted 10 years ago by karmacode
Prints an array (recursive) as PHP code (can be pasted into a php file and it will work). Note: This function can process arrays with integers/strings/sub-arrays. It is impossible to process resources (they have a state), and while it is possible...
1 329 posted 10 years ago by BrunoDeBarros
Add block in anywhere in the content, node in drupal
2 272 posted 10 years ago by jesudasjj
This was a fix for the form that allowed me to automatically replace the text when I focused on area. Find the file text.php inside modules. Replace line 89 with this code.
0 355 posted 10 years ago by gera3d
I edit this from tylerhall on 11/30/-1
0 302 posted 10 years ago by redoc
0 319 posted 10 years ago by kidmizere
0 247 posted 10 years ago by Joergermeister
1 ... 65 66 67 68 69 ... 152