Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 65 66 67 68 69 ... 147
Example set of files for data mapping objects to db records. (Not perfect, but funcional)
0 780 posted 13 years ago by nikefido
A sample wrapper class around Zend_File_Transfer_Adapter_Http
0 741 posted 13 years ago by nikefido
I’ve implemented something similar a couple of months ago. What we wanted was to prevent the cart from the old session from merging into the cart of the current session at the point when the customer login. If that describes what you want as well,...
0 661 posted 13 years ago by TioSolid
Adjust the size of the body field window. For use in hook_form_alter().
0 754 posted 13 years ago by tgbdad
Save in a php file and run in the directory. Remove directory files through ftp. Remove php file
0 691 posted 13 years ago by resting
0 601 posted 13 years ago by baires
Only this portion needed // Add page template suggestions based on node type, if we aren't editing the node. if ($vars['node'] && arg(2) != 'edit') { $vars['template_files'][] = 'page-nodetype-'. $vars['node']->type;...
1 769 posted 13 years ago by resting
This will make all errors be shown and logged. Useful for when you want to figure out what's wrong but the production server doesn't display any errors.
1 742 posted 13 years ago by BrunoDeBarros
Как сделать вывод из нескольких таблиц (php mysql) Итак, имеем: Три таблицы - articles, categories и sections. По иерархии - в sections включаются categories, а в catego...
0 776 posted 13 years ago by graceman9
0 708 posted 13 years ago by dmistriotis
You can use this code under MIT licence.
0 1079 posted 13 years ago by digitalzoomstudio
0 366 posted 13 years ago by recipient
Used in Wordpress to get the post Thumbnail. Thumb url goes to $img
0 545 posted 13 years ago by RWolford
For Wordpress. Used to get the url of the post Thumbnail.
0 494 posted 13 years ago by jazzikins
0 1165 posted 13 years ago by wnasich
Example from New Play Map
0 629 posted 14 years ago by mimlee
Example used in New Play Map
0 571 posted 14 years ago by mimlee
This snippet is a PHP function that checks if an email address is valid
2 913 posted 14 years ago by visudex
Useful for copyright. Keeps date current.
0 715 posted 14 years ago by bombadda
Replace 'position' with 'your-position-name'.
0 702 posted 14 years ago by bombadda
After an attempt to more a live site to a personal server for further work I ran across the problem of a mix of absolut and relative links making the local copy not work. Not wanting to manually have to change every single absolute to a relative (bec...
0 791 posted 14 years ago by FatFolderDesigner
Use Mage::register() to add an entry into registry, Mage::registry() to retrieve data and Mage::unregister() to delete registry entry.
0 578 posted 14 years ago by vrnet
1 ... 65 66 67 68 69 ... 147