Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This is a slightly hard core email check. I work for clients that want real email addresses. They pay quite a bit of money so yes, I am going to give what they want...
3
838
posted 15 years ago by brownrl
Face it!
Whenever you make a website/app you always need to make XLS export for the simple people. I mean heaven to betsy if they have to take a csv file, or use phpMyAdmin.
So
Here are 3 little functions and a sample skeleton that I use fro...
6
1264
posted 15 years ago by brownrl
Memory leakage in IE6/7 if the event handlers are not purged before deleting an element.
0
790
posted 15 years ago by iTony
This is a long over due update to my db insert building function. Please not that the function is the important part the code below is just prove that it works... l:-)
1
671
posted 15 years ago by brownrl
Some PHP code that can be used to get formatted HTML containing N number of tweets for a given twitter user.
5
1241
posted 15 years ago by gripnrip
In this Thesis WP tutorial for multiple custom page templates, we find code for making a custom homepage template as well.
2
823
posted 15 years ago by mlangfeld
This code to be added to custom_functions.php May also need to add to custom.css to style your custom widget. (This code found towards the end of the article).
2
874
posted 15 years ago by mlangfeld
this script splits the csv file two times (1. on "new line", 2. on ";") and returns a two dem array in the last for loop.
2
810
posted 15 years ago by antpaw
This creates a custom HTML header in Thesis with a logo and an advert section (to be used instead of CSS image replacement).
Example CSS to use with it:
.custom #header:after {content:"."; display:block; height:0; clear:both; visibility:hidden;...
5
916
posted 15 years ago by kristarella
This is a good way to validate form input from PHP, in essence this could be a blue print for your forms.
5
945
posted 15 years ago by brownrl
This is a short and sweet snippet that will save the users form input after PHP runs validation and returns false. Very good for User Experience!
0
752
posted 15 years ago by montanaflynn
Template Tag body_class
The coming WordPress 2.8 provides a new Template Tag, body_class. This function gives the body element different classes, which gives you the possibility to use it effectively with CSS.
3
613
posted 15 years ago by jessibird
Example
Running:
alphaID(9007199254740989);
will return 'PpQXn7COf' and:
alphaID('PpQXn7COf', true);
will return '9007199254740989'
Easy right?
1
1137
posted 15 years ago by localhorst