Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 56 57 58 59 60 ... 147
Snippet from http://www.luscarpa.com/
0 976 posted 13 years ago by theriddlebrothers
0 501 posted 13 years ago by PubliOne
2 735 posted 13 years ago by janvdm
2 658 posted 13 years ago by janvdm
this took me forever to figure out!
0 653 posted 13 years ago by discipolo
Encode mailto links and (plain) email addresses on your site and hide them from spambots. Easy to use, plugin works directly when activated. Features * Protect all emails and mailto links * Check posts, widgets, comments and RSS feeds * Encode...
0 1071 posted 13 years ago by freelancephp
View class that contains features like: - get vars inside the view with: 1) $var1 2) $this->var1 3) or $this->get( 'var1', 'defaultValue' ) - factory method for direct chaining: Lim_View::factory( 'test.php' )->set( 'var1', 'value1' )->...
0 786 posted 13 years ago by freelancephp
This function empties the folder recursively. Two parameters are passed in the function, First one is the directory to be emptied and second one is the flag to determine whether to delete the given folder. If set 'true', given folder is also removed...
0 899 posted 13 years ago by nilambar
I use this little guy to get the width and height from a filename. Often when I need to show a flash swf file I don't have an easy way to tell the width and the height of the file for display. However is the file name is "some_flash_file 300x250.swf"...
0 1007 posted 13 years ago by brownrl
This function uses the preg_replace counter to check for any non-alphanumeric characters. You can use this for username / password validation if you don't want any special characters to be used.
1 656 posted 13 years ago by robertdotim
2 697 posted 13 years ago by alexmargineanu
These are some date functions. Get Current Week Start Date Get Current Week End Date Get Current Month Start Get Current Month End Get Current Year Start Get Current Year End and these functions can help you getting last week's start date...
0 676 posted 13 years ago by aamirrajpoot
Though an old post, this is my solution that's been pieced together from various comments on the article linked above.
1 1334 posted 13 years ago by beneberle
Pertenece al tutorial publicado por COLORATE --> http://www.colordeu.es/BLOG/registros-de-usuario-en-php-y-mysql-con-validacion-de-campos-y-activacion-por-mail
0 1370 posted 13 years ago by danideu
Pertenece al tutorial publicado por COLORATE --> http://www.colordeu.es/BLOG/registros-de-usuario-en-php-y-mysql-con-validacion-de-campos-y-activacion-por-mail
0 1105 posted 13 years ago by danideu
Pertenece al tutorial publicado por COLORATE --> http://www.colordeu.es/BLOG/registros-de-usuario-en-php-y-mysql-con-validacion-de-campos-y-activacion-por-mail
0 1276 posted 13 years ago by danideu
Wordpress: home page condition , we can identify it any inner pahe (header / footer etc.)
1 608 posted 13 years ago by aashvi
display page list for selected pages : remove "Page" word
0 592 posted 13 years ago by aashvi
create link for page
0 619 posted 13 years ago by aashvi
How to create home page url
0 739 posted 13 years ago by aashvi
The following script will easily allow you to resize images using PHP.
3 812 posted 13 years ago by enkas
template catalog->layer->view.phtml
0 771 posted 13 years ago by nico65
There are a lot of recursive glob functions out there but they don't build a tree, they build a 1 dimensional array...This function builds a directory tree.
1 729 posted 13 years ago by danoph
replaced taxonomy = 'category' with taxonomy = '".myTAXONOMY."' add lines 51, 52, 93 - 123
0 1473 posted 13 years ago by Ijaas
I have to migrate from my old Drupal 5 site, that had multiple authors assigned to one node, and this is the solution for __Drupal 7__. First of all you will need to download [__References__](http://drupal.org/project/references) module and ena...
1 843 posted 13 years ago by Turek
#ImageMagick must be installed on server for this operation
6 1766 posted 13 years ago by alessio2
1 ... 56 57 58 59 60 ... 147