Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Set the correct path to use php cli in Terminal, with Mamp instead of default php installation of Osx.
0
680
posted 12 years ago by macodev
Takes a number (no decimal) and converts it to written words.Why'd i write it to be able to do such big numbers? Why not?
Note: The numbers next to the 'thousandfoldnums' are for your reference (thats how many zeros/places there are in that numbe...
0
785
posted 12 years ago by lasavior
Allows you to change the name of the "Posts" module within the admin section of WordPress.
0
560
posted 12 years ago by jamiebrwr
In case you need to create your own listing of the last # of trailing months of Archived Wordpress Articles. This one is being used to pull the info onto a Magento page.
0
647
posted 12 years ago by cpres
add this to functions.php and you won't have to mess with the index page.
0
678
posted 12 years ago by cpres
There are a few modifications to make to your WP files to share a single database between multiple installs on separate domains.
0
488
posted 12 years ago by lancemonotone
Good for showing labels/descriptions that accompany custom fields when they are set, and avoiding lots of empty labels.
Eg: if there is no content set in the 'project-agency' field, don't show the label 'Agency:', but if there is, show it with the...
0
618
posted 12 years ago by wahnbriefe
The fastest way is to create a php file and access it through browser add the following content to file.
0
789
posted 12 years ago by necode
This is a skeleton mock up for showing a database table in a basic datagrid with sorting and pagination.
0
890
posted 12 years ago by brownrl
This PHP class can be used to process credit card payments via Cybersource.
It can send HTTP requests to Cybersource SOAP Web services API server to perform several types
of operations to process credit card payments.
Currently it can request...
0
694
posted 12 years ago by mafhh14
This article shows how to add default value to any system configuration option fields. System configuration option fields means those options under System -> Configuration.
Suppose, you have the following system.xml file. System.xml file is necess...
0
703
posted 12 years ago by necode
Insert that into the database as a string. The example would give you the format 2011-01-28
0
746
posted 12 years ago by necode