Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
664
posted 13 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
860
posted 13 years ago by jhonqwerty
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
1490
posted 13 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
942
posted 13 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
866
posted 13 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
1289
posted 13 years ago by kingkool68
Remove the Attributes in <img> - Tags in the Post/Page Content
0
680
posted 13 years ago by maxxscho