Welcome To Snipplr


Everyone's Recent Snippets Tagged php



1 ... 44 45 46 47 48 ... 64
This is just a simple function to get the variable without having to worry if its POST or GET, and even allows for a default value to be passed in case the variable was not found.
0 1398 posted 16 years ago by mondomondomxcom
0 1317 posted 16 years ago by antpaw
My Kohana HTML Helper
1 1392 posted 16 years ago by antpaw
Using the kohana framework for XSS protection
0 1568 posted 16 years ago by iloveitaly
sendmail needs to be working and configured properly uses popen and fputs
0 2257 posted 16 years ago by acosonic
0 1824 posted 16 years ago by okidoka
This is a quick & dirty helper for pumping out those annoying little link sharing URLS. I've kept it simple, so all it does is return a URL formatted for a particular service. To use it, just pass a string of the service name to the helper followe...
1 1550 posted 16 years ago by brettbergeron
Dumps whole query so developer can see where is error. However it's potential security issue, exposing SQL commands to attacker. (Recommended to use only during development, replace message code with some custom error text)
0 1873 posted 16 years ago by acosonic
Below are two functions I've been using to make event tracking a little easier in CodeIgniter. Two functions are available, google_analytics() & track_event(). google_analytics() takes one argument and uses it as the UA code for your tracking p...
5 2206 posted 16 years ago by brettbergeron
The below code helps you move your site assets (images, css, javascript) to a public folder inside the application directory of CodeIgniter. One thing you'll need to do is define ASSETPATH to be the path to the location of your public items. For m...
1 1491 posted 16 years ago by brettbergeron
A simple class layout template that I always use to get me started. Nothing fancy. Just your basic structure.
1 1678 posted 16 years ago by StrawMan
0 1323 posted 16 years ago by radarseven
0 1384 posted 16 years ago by gerhardsletten
I made this script to count the days until a birthday, the birthdays are stored in mysql with the year intact YYYY-MM-DD, so this function strips the first 4 chars, and adds the current year, if the date has already passed it adds the next year and c...
9 3005 posted 16 years ago by jcroom
0 1288 posted 16 years ago by jonniespratley
0 1314 posted 16 years ago by jonniespratley
http://code.google.com/p/jquery-jtwitter/ for examples.
2 1847 posted 16 years ago by jonniespratley
I recently found the need to run multiple CodeIgniter applications inside of a single codebase for development & test purposes. So, I rewrote a few lines of the primary index file (/index.php) to automatically route URLs like subdomain.domain.com to...
3 1840 posted 16 years ago by brettbergeron
Take the contens from a table in MySQL and display it in an email
2 1379 posted 16 years ago by jcroom
This code will create a human readable string that will look more close to dictionary words, useful for captchas.
3 2664 posted 16 years ago by Mithun
This function converts URLs and e-mail addresses within a string into clickable hyperlinks.
2 1768 posted 16 years ago by Mithun
0 1395 posted 16 years ago by dsntos
0 1580 posted 16 years ago by renatoelias
1 1485 posted 16 years ago by iTony
Enables you customise the colour of your <li> bullet points.
0 1616 posted 16 years ago by nostradamuszen
0 1178 posted 16 years ago by rowntreerob
Function for sanitize input POST, GET, COOKIE arrays.
2 1659 posted 16 years ago by kirik
In addition to the recommendations on the Wordpress Website. Limit the amount of PHP files that a writable by Apache. The directory's and files that need to be writable, do not always need to be executed by PHP directly. This makes it a bit har...
1 1385 posted 16 years ago by occam
1 ... 44 45 46 47 48 ... 64