Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
1248
posted 12 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
744
posted 12 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
652
posted 12 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
1029
posted 12 years ago by kingkool68
Remove the Attributes in <img> - Tags in the Post/Page Content
0
497
posted 12 years ago by maxxscho
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
1868
posted 12 years ago by f6design
In this blog, we will see how to add custom fields to magento onepage checkout steps.
This method can be used to add custom field to any step in the checkout page, although in the current blog i have demonstrated how to add it to the billing step. T...
0
508
posted 12 years ago by etechblog