Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 30 31 32 33 34 ... 148
This is a little PHP class that permits to start quickly the creation of a webpage. When you declare an instance of the class it automatically starts the output buffering and gzip compression, it outputs all the proper tags (doctype, meta, stylesh...
0 420 posted 11 years ago by claudiowebdesign
A simple script to show a followers list in Wordpress. (It can be used in other places also, you have to change the WP specific variables). The script needs to create a cache file to not overload Twitter API.
0 543 posted 11 years ago by jhonqwerty
0 526 posted 11 years ago by focal55
This creates a theme options page for a wordpress theme.
0 490 posted 11 years ago by ddavidd
Replace in modules\mod_menu\tmpl\default_component.php
0 516 posted 11 years ago by vyatka
Update a Git repo with PHP
0 432 posted 11 years ago by adampatterson
0 473 posted 11 years ago by kidmizere
This is a very rudimentary function used to convert a Datetime delivered by the Twitter API to a format you can store in MySQL's datetime field.
0 1048 posted 11 years ago by aristoworks
Script para usar la librería PHP Mailer para enviar un mail usando gmail como servidor SMTP. Se debe descargar la librería phpMailer (www.phpmailer.worxware.com). Se usa una plantilla html para maquetar el cuerpo del mensaje. Desde un serv...
0 600 posted 11 years ago by alberomo
Place at the top of your header.php to redirect visitors who are not logged-in to the Wordpress admin. I use this to redirect to a simple HTML 'coming soon' page while sites are in development.
1 506 posted 11 years ago by adambundy
1. Get Posts however you see fit 2. Loop through the posts getting the terms from taxonomies and add them to the Post object 3. Sort the Array of Post Objects by the property you want them sorted by using sort_on_field()
0 801 posted 11 years ago by kingkool68
Adds a class to the standard classes in Images in Posts/Pages
0 496 posted 11 years ago by maxxscho
Remove the Attributes in <img> - Tags in the Post/Page Content
0 392 posted 11 years ago by maxxscho
0 414 posted 11 years ago by erraja_07
0 591 posted 11 years ago by Abe
Sometimes a legacy database will have HTML entities stored in it. This function converts them. Note that this function assumes you have a database abstraction layer, and may need to be modified to connect to YOUR database.
0 1484 posted 11 years ago by f6design
1 ... 30 31 32 33 34 ... 148