Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 105 106 107 108 109 ... 147
Used to convert URLs in a string into links
1 761 posted 15 years ago by jspicher
5 859 posted 15 years ago by SteveMcDaniel
Easy file create/write script
0 692 posted 15 years ago by jspicher
Convert string to underscore, for SE safe URLs etc.
1 770 posted 15 years ago by jspicher
Used to sanitize user input for email.
0 749 posted 15 years ago by jspicher
Used to cleanly truncate text.
0 760 posted 15 years ago by jspicher
Convert a string to number.
0 654 posted 15 years ago by jspicher
Takes a .sql file and runs trough that, each line as an update_sql. Very usefull to track and migrate your blocks/views/cck etc changes.
0 940 posted 15 years ago by berkes
This makes template code that applies to children of a particular page much more readable, especially if you can use a page path instead of an ID: `if ( is_child_of( 'topic/subtopic' ) ) :`.
1 989 posted 15 years ago by cyberhobo
the numbers 108 and 18 are the category ids i wanted to exclude
0 790 posted 15 years ago by crs
from http://www.w3schools.com/php/php_mail.asp
0 925 posted 15 years ago by rwczippy
Function to add custom body class in th Thesis theme for WordPress...Thanks to @girliegeek!
1 1072 posted 15 years ago by joelhaus
0 683 posted 15 years ago by lexx
Hey everyone, I was noticing that there are a lot of ways that people are using to write their own string truncation functions wit the use of other functions like 'substr_replace', but it kinda seemed like a lot of them went a bit too far out to make...
1 876 posted 15 years ago by Admiral
nothing special :)
0 1039 posted 15 years ago by adamcoulombe
Add snippet in BaseFormPropel.class.php
1 1201 posted 15 years ago by skwok
0 903 posted 15 years ago by ajbatac
2 792 posted 15 years ago by sennesaelium
Image files are: header_1 , header_2, header_3, header_4
0 672 posted 15 years ago by donatkinson
This code allows you to track each step of Magento's One Page Checkout in Google Analytics. I installed it at the bottom of my `checkout/onepage.phtml` template file. Once installed, you can set up a funnel for the following: * `/checkout/onepage/...
0 904 posted 15 years ago by jdbartlett
This snippet is usable for telephone number normalization. It supports re-mapping of misused alphabetical characters (e.g. i for 1) and some other clean up stuff... Take a look. Update, 2009-10-02: added function to create a corresponding MySQL RE...
1 1083 posted 15 years ago by dreadwarrior
Escribir archivo de texto en directorio
0 800 posted 15 years ago by pardalsalcap
Variables that are submitted via web forms always need to be cleaned/sanitized before use in any way, to prevent against all kinds of different malicious intent.
0 814 posted 15 years ago by paulgrenwood
1 ... 105 106 107 108 109 ... 147