Welcome To Snipplr


Everyone's Recent Snippets Tagged php



1 ... 48 49 50 51 52 ... 64
1 1425 posted 17 years ago by justinseiter
this is how to automatically get short urls for your blog posts in wordpress, What you need is to decide which tinyurl service you will be using and get its api URL, for example rinyurl.com , bit,ly, tr.im, here are the api URLS for the mo...
0 2000 posted 17 years ago by nerdsane
4 1966 posted 17 years ago by level09
This is a snippet to assign an active class to active links when the navigation is included in a php file.
1 1614 posted 17 years ago by grazz
1 1909 posted 17 years ago by cobra90nj
Block - install as normal
0 889 posted 17 years ago by fearghalmurphy
This snippet returns a link to twitter for the user to tweet the current page. URL is TinyURLed automatically (and tinyurls are cached indefinitely in assets/cache/tweetthis.txt). Simply paste code into a new snippet called "TweetThis". Call it li...
3 1609 posted 17 years ago by DaveChild
Grab 5 latest Wordpress posts and display them on a non-Wordpress PHP page.
1 1489 posted 17 years ago by kwilson
Put this before the loop in archive.php to have posts in the archive for category '26' sorted by custom field 'date'. Assign sortable values like '090501' or '2009-05-01' to those fields when editing posts and your Upcoming Events will be sorted by...
8 3153 posted 17 years ago by hussong
1 1528 posted 17 years ago by michaelfox
A fallback for php's json_encode functionality. What do you think?
1 1467 posted 17 years ago by kirie
0 1300 posted 17 years ago by kokikr
0 1616 posted 17 years ago by albertomori
This function will convert any long url into a Diggbar url
2 1575 posted 17 years ago by jdstraughan
Skor PHP Template class can assign individual variable values or arrays with several variable values. A separate sub-class extends the base class to support delimited template section replacements.
0 1355 posted 17 years ago by Agundur
Wandelt eine Datetime in eine deutsches Datum um
0 1173 posted 17 years ago by bpa
You can get hostname from script environment - getenv("HTTP_HOST") (?!'.$host.') matches URLs always except local links
0 1557 posted 17 years ago by kossmoss
In phpMyAdmin you can define strftime formats for your dumped database sql files. Here you are with two formats, one for sigle table export, one for multi-table export.
0 1620 posted 17 years ago by dawjdh
0 1783 posted 17 years ago by rezzz
Simple way to escape string for LIKE statements, useful for searches.
3 1559 posted 17 years ago by robv
0 1369 posted 17 years ago by scalhoun2005
4 2015 posted 17 years ago by iTony
3 1306 posted 17 years ago by joeymarchy
0 2337 posted 17 years ago by eden159
To convert links on a twitter status to a clickable url. Also convert @ to follow link, and # to search
3 2245 posted 17 years ago by mardix
1 1680 posted 17 years ago by apro2000
1 ... 48 49 50 51 52 ... 64