Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 106 107 108 109 110 ... 554
This is a little PHP class that permits to start quickly the creation of a webpage. When you declare an instance of the class it automatically starts the output buffering and gzip compression, it outputs all the proper tags (doctype, meta, stylesh...
0 876 posted 13 years ago by claudiowebdesign
////////////////////////////////////////////////////////// function debug($ch,$force=false) { global $debugphp,$iphost,$ch_debug; $ip=getenv('REMOTE_ADDR'); if ((($debugphp==true)||($force==true))&&(in_array($ip, $iphost))) {...
0 1075 posted 13 years ago by kspal
0 928 posted 13 years ago by retsub79
From the Pickaxe, 4th edition, p. 352: A rescue clause with no parameter is treated as if it had a parameter of StandardError. This means that some lower-level exceptions will not be caught by a parameterless rescue class. If you want to rescue ev...
1 1046 posted 13 years ago by cczona
0 1212 posted 13 years ago by Meander365
I found some cases where JavaScript won't properly handle the Plus symbol (+)
0 1108 posted 13 years ago by Jamie
A simple script to show a followers list in Wordpress. (It can be used in other places also, you have to change the WP specific variables). The script needs to create a cache file to not overload Twitter API.
0 1072 posted 13 years ago by jhonqwerty
0 842 posted 13 years ago by kendsnyder
0 866 posted 13 years ago by timarney
0 1059 posted 13 years ago by focal55
This creates a theme options page for a wordpress theme.
0 974 posted 13 years ago by ddavidd
Replace in modules\mod_menu\tmpl\default_component.php
0 999 posted 13 years ago by vyatka
0 875 posted 13 years ago by vyatka
Useful to open an image for viewing from the command line under Windows, in this example the image is generated by the GraphViz dot command.
0 2072 posted 13 years ago by m1b
Update a Git repo with PHP
0 961 posted 13 years ago by adampatterson
1 983 posted 13 years ago by jimfred
0 931 posted 13 years ago by kidmizere
This is a very rudimentary function used to convert a Datetime delivered by the Twitter API to a format you can store in MySQL's datetime field.
0 1764 posted 13 years ago by aristoworks
1 ... 106 107 108 109 110 ... 554