Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Custom CodeIgniter form_validation class to validate uploaded files.
1
817
posted 15 years ago by djenniex
For more information, see php.net, under usort
It works with dates
Replace 0 for the array's key you want to sort. For example, if you have a start_date array key you would like to compare, then you would replace 0 for start_date.
If you wan...
0
938
posted 15 years ago by leonelsantos
In v1.6, the Thesis Theme has a bug which removes a necessary space in the HTML body tag if you add a filter targeting the thesis_body_classes hook. To get the native WP body_class function to work, use this code:
2
1109
posted 15 years ago by joelhaus
Move form element into category. Helper for organizing the form
0
581
posted 15 years ago by kosmikko
A very simple class that quickly gets you interacting with a database, as long as you know sql :P.
1
1338
posted 15 years ago by r3morse
Via: [http://www.touchdesk.nl/2009/04/full-menu-tree-with-active-trail-in-drupal-6/](http://www.touchdesk.nl/2009/04/full-menu-tree-with-active-trail-in-drupal-6/)
0
797
posted 15 years ago by Ateneatech
Do you every wanted to clean and perfectly intent your xhtml document?
1
771
posted 15 years ago by tillkruess
the user sees the confirmation page immedeateley. this is helpful if the mail() function takes some time
0
830
posted 15 years ago by miebach
Do not use this php file exactly as it is.
It's only to demonstrate the basics of the api.
You *must* do form checking to ensure safe values are passed.
Also, it's a really bad and very insecure practice to put a form like this publicly on your w...
1
1364
posted 15 years ago by shaunjanssens