Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 282 283 284 285 286 ... 553
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 1169 posted 15 years ago by nfreear
Syntax used to create a table in MySQL. Replace column names as appropriate. Primary key should also be modified to suite needs.
2 1301 posted 15 years ago by dkynyc
View the syntax used to create a table called time_zone.
1 1148 posted 15 years ago by dkynyc
Allows us to see the syntax used to create a database.
1 1180 posted 15 years ago by dkynyc
Issue commands via batch mode.
2 1277 posted 15 years ago by dkynyc
This will automatically tag external links and prefix the URL with '/outgoing' for tracking in Google Analytics. The pageTracker is assumed to be added to the page elsewhere in the markup. By default it is applied to all links contained in the BODY t...
0 1319 posted 15 years ago by rgsmith007
Assumes that the record has a `name` field which represents the name of the location and always has a defined two character `country` field.
0 1459 posted 15 years ago by iloveitaly
Use the facebook api to grab how many \\\'likes\\\' a url has had.
5 3094 posted 15 years ago by dtbaker
Simple piece of PHP to get the contents of a specified tag from an XML file and return it
3 3434 posted 15 years ago by ollie101
0 1180 posted 15 years ago by silviud
On Zend Framework you can add options on Select Element on Form.php or Controller Action, and after you can disable it, on Form.php or Controller.php too.
1 1865 posted 15 years ago by postNuKe
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 1325 posted 15 years ago by smsmatrix
0 1430 posted 15 years ago by bebroll
0 1084 posted 15 years ago by Angelboy
1 1010 posted 15 years ago by ivorpad
This is good for ensuring your domain is always either accessed with or without the www, which is important for SEO. It is also good if you have multiple domains that should resolve to the same site, and can redirect all requests to the main domain.
2 1454 posted 15 years ago by beneberle
1 1179 posted 15 years ago by jmacgr
Add this to .irbrc. Allows the following in console: > gethtml('/login') => HTML of whatever page is generated by /login
0 3415 posted 15 years ago by insanedreamer
Para colocar los produtos nuevos en el home o en otra pagina CMS de magento. Para que esto funcione, el producto debe estar indicado como nuevo, en la edicion del producto.
0 916 posted 15 years ago by manteca
This code traces out the name (and display list path) of the object that currently has focus. This handy when you are testing the tab order and you can't see a yellow rectangle anywhere.
2 1281 posted 15 years ago by adrianparr
like array_search but compares against a specific key in each element of the array
2 1424 posted 15 years ago by iloveitaly
This code goes into the index.php
1 1099 posted 15 years ago by gera3d
1 ... 282 283 284 285 286 ... 553