Welcome To Snipplr


Everyone's Recent Snippets Tagged php



1 ... 28 29 30 31 32 ... 63
Simple function to store an array in a cookie. Uses JSON. To pull data out of cookie use 'json_decode()'. It can then be looped etc.
1 2738 posted 16 years ago by liamchapman
0 1812 posted 16 years ago by G470
put this code above the loop
0 1383 posted 16 years ago by Token
Quick and simple script to make clean urls. Works in combination with Apache mod_rewrites :-)
1 1732 posted 16 years ago by liamchapman
this is a very basic client for rumpetroll. Very messy, still needs to be turned into a class
0 1869 posted 16 years ago by michaelphipps
0 1774 posted 16 years ago by zreedeecom
Brings single or multiple results from a mediawiki search back as an easy to use array
0 1652 posted 16 years ago by adamzwakk
1 3322 posted 16 years ago by danwhite85
This function will return the correct url for the timthumb php script (wordpress 3.0 or higher required!) Usage: just call the function in your theme with the post id as parameter, it will return a value so store this into a variable (must be ins...
0 1768 posted 16 years ago by krike
This is to call up Javascript alert through PHP. I hate switching between echoing Javascript while writing PHP so I wrote one in PHP.
0 2287 posted 16 years ago by chopbust
I wrote this little bit of code myself so if you see where you can improve on it, let me know. This is great for making complex menu's and also for making sure your POST data gets saved and reselected when the screen refreshes. I use it in all my pro...
0 2636 posted 16 years ago by geilt
0 1531 posted 16 years ago by dmertl
Will help convert string to number OR get number in a selected string.
0 2047 posted 16 years ago by carbonr
1 2309 posted 16 years ago by mloberg
Useful for displaying copyright notices on a website.
0 2111 posted 16 years ago by f6design
A Twitter pull-in that I coded using PHP. Uses the JSON user_timeline Twitter API call. It displays the tweet with links to any urls, users, or hashtags, the time ago, and if it was in reply to anyone.
2 2410 posted 16 years ago by mloberg
This is a two file video player. I use JSON to get the list of videos from a user, then when a thumbnail is clicked, an AJAX request is sent with the id of the video, and an oEmbed response is sent back.
4 2183 posted 16 years ago by mloberg
Script to send mails with Swift Mailer
0 1990 posted 16 years ago by juanchifc
This is a very simple use of the Vimeo API. All it does is list the video title, a thumbnail of the video, and the description. More advance script coming later.
0 1911 posted 16 years ago by mloberg
2 2337 posted 16 years ago by mloberg
1 1902 posted 16 years ago by MrFjords
I’ve made this function that receive the input $video string that contains the dirty embed code as it is from youtube. The second parameter $new_width (if specified) permits to resize the embed code proportionally to the width you need for your tem...
0 2989 posted 16 years ago by ginoplusio
Drupal snippet
0 2073 posted 16 years ago by apro2000
This is my fairly easy to use MySQL database class, I use this on my Experiment framework BlahFramework, anyways I thought someone else may find this useful or just study the code to get an awesome idea of there own. Enjoy.
3 3392 posted 16 years ago by Cory
use: <?=validarAbusoMayusculas('HOLA>
0 1683 posted 16 years ago by nicolaspar
0 1693 posted 16 years ago by metoikos
1 ... 28 29 30 31 32 ... 63