Welcome To Snipplr
You searched for: http
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
based upon http://www.snipplr.com/view/41900/base-html5-template/
2
1170
posted 15 years ago by withinmedianl
Appends a custom more-link to all excerpts, regardless of whether they're auto-generated or pulling manual excerpts from the excerpt field. Note: Automatic excerpts still show the default […] at the end (before the more-link).
Found here: http:/...
1
1391
posted 15 years ago by hussong
searching for a date sort function I found: http://slevy1.wordpress.com/2010/06/30/sorting-date-strings-in-php/ and built my codeigniter helper
call : $arrSortedDates = bubbleSort( $unsorted ); (previous->helper autoload)
0
1341
posted 15 years ago by lluisr
Makes basic insert statements a breeze to type while doing basic PHP inserts.\r\n*The function for \\\'querys\\\' on line 44 can be found here: http://snipplr.com/view/40911/query-the-database-php/ *
0
1346
posted 15 years ago by shawntysco
Gets the date, pulls a list of upcoming events (posts from cat 6) and sorts by custom field \\\"event_date\\\" . Add to sidebar via [PHP Code Widget](http://wordpress.org/extend/plugins/php-code-widget/).
0
1701
posted 15 years ago by hussong
Uses action hook of the hybrid theme framework to launch function that modifies the query on the archive page for category 6.\\r\\n\\r\\nSorts by the custom field \\\"event_date\\\" and compares it to the current date.\\r\\n\\r\\nBased on [goto11\\\'...
0
1449
posted 15 years ago by hussong
<p>Como utilizar las clases de Zend Framework desde nuestro proyecto web que no trabaja con el Framework de Zend en modo MVC.</p><p>Paso 1.<BR> Bajamos las librerÃa de ZF desde el sitio oficial http://framework.zend.com/download/latest/<BR>Nota: Est...
0
1444
posted 15 years ago by eom
To follow all of members in a list, you may want to use http://tweepml.org/
0
1356
posted 15 years ago by zuzara
Quick and easy way to determine if the HTTP request is an AJAX call or a standard call. Supports the notion of Unobtrusive JavaScript.
3
3000
posted 15 years ago by joshuascott94
Pulling posts from outside wordpress (in the right way!) as a response for this snippet: http://snipplr.com/view/39523/pulling--posts-from-outside-wordpress/
0
2121
posted 15 years ago by bronet
Here's a little trick I started using when working with XAMPP for localhost and keeping things in tune with the live configuration variables such as username and passwords to mysql (or whatever you're writing for).
The example below figures your w...
1
1275
posted 15 years ago by jackkeller
The code to call the normal Thesis Thumb is at http://snipplr.com/view/38971/thesis-thumbnail/\r\n\r\nTo test whether there is a thumbnail, and if not use another one, use this code in custom_functions.php.\r\n\r\nYou can change the class alignleft t...
0
1137
posted 15 years ago by kristarella
Substitute new_ placeholder in the second line with your new prefix. Run it: http://www.yoursite.com/rename.php and wait until it responds with an OK, usually after a couple of seconds. Delete the rename.php script. Edit the configuration.php file...
0
2655
posted 15 years ago by beneberle
I used this plugin to create new roles/capabilities: http://wordpress.org/extend/plugins/capsman/
1
1040
posted 15 years ago by seafae
I needed to create several pages that didn't use any models and contained static data inside the default layout. My first thought was to create a controller for these pages and define an action for each static page I needed. However, this solution se...
0
1204
posted 15 years ago by TioSolid
Following our recent work on an [API for Cloudworks](http://freear.org.uk/node/40) I thought I\'d post this simple demo, which uses cURL and json_decode. [Email us](mailto:cloudworks AT open.ac.uk?subject=API) for an API key. (15-24 June 2010.)
0
1325
posted 15 years ago by nfreear
Send SMS via www.smsmatrix.com SMS Gateway using PHP
See more examples at <A HREF="http:/www.smsmatrix.com">SMS/Voice/TTS Gateway</a>
0
1494
posted 15 years ago by smsmatrix
A source to help you interpreting URLs in plain text as a HTML link. It's an improvement of what was proposed here : http://snipplr.com/view/2371/regex-regular-expression-to-match-a-url/
3
2470
posted 15 years ago by keevkilla
Used in my post on how to optimize WordPress, which can be found here: http://www.brettwidmann.com/2010/01/optimizing-your-wordpress-site-pt-2/
1
1207
posted 15 years ago by goatboy91587
Used in my post on how to optimize WordPress, which can be found here: http://www.brettwidmann.com/2010/01/optimizing-your-wordpress-site-pt-2/
0
1294
posted 15 years ago by goatboy91587
Used in my post on how to optimize WordPress, which can be found here: http://www.brettwidmann.com/2010/01/optimizing-your-wordpress-site-pt-2/
0
1229
posted 15 years ago by goatboy91587
Used in my post on how to optimize WordPress, which can be found here: http://www.brettwidmann.com/2010/01/optimizing-your-wordpress-site-pt-2/
0
1252
posted 15 years ago by goatboy91587
This snippet allows admins to create menu items which do not link anywhere. This is most useful in situations where one wants to have dropdown menus where the parent item should not be a link.
This same method could be used to create non-linking...
1
1609
posted 15 years ago by MikeyLikesIt
Check to see if HTTP POST variable exists before doing something with it.
0
1589
posted 15 years ago by jonkemp