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 600 posted 15 years ago by jspicher
5 744 posted 15 years ago by SteveMcDaniel
Easy file create/write script
0 606 posted 15 years ago by jspicher
Convert string to underscore, for SE safe URLs etc.
1 622 posted 15 years ago by jspicher
Used to sanitize user input for email.
0 643 posted 15 years ago by jspicher
Used to cleanly truncate text.
0 646 posted 15 years ago by jspicher
Convert a string to number.
0 569 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 828 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 869 posted 15 years ago by cyberhobo
the numbers 108 and 18 are the category ids i wanted to exclude
0 681 posted 15 years ago by crs
from http://www.w3schools.com/php/php_mail.asp
0 807 posted 15 years ago by rwczippy
Function to add custom body class in th Thesis theme for WordPress...Thanks to @girliegeek!
1 944 posted 15 years ago by joelhaus
0 575 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 763 posted 15 years ago by Admiral
nothing special :)
0 867 posted 15 years ago by adamcoulombe
Add snippet in BaseFormPropel.class.php
1 1030 posted 15 years ago by skwok
0 800 posted 15 years ago by ajbatac
2 695 posted 15 years ago by sennesaelium
Image files are: header_1 , header_2, header_3, header_4
0 586 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 783 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 923 posted 15 years ago by dreadwarrior
Escribir archivo de texto en directorio
0 697 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 707 posted 15 years ago by paulgrenwood
this comes from YAPB plugin for WordPress. kudos to the author. (there are some functions that are deprecated in PHP 5.2+ - you'll need to replace eregi with the mb_ version). This should be quite failsafe, regardless if curl is installed or the set...
1 1105 posted 15 years ago by iroybot
1 ... 105 106 107 108 109 ... 147