Welcome To Snipplr


Everyone's Recent Snippets



1 ... 452 453 454 455 456 ... 554
1. Edit the html form 'action' to point to your PHP page that handles the upload. 2. Create the php page with the code below 3. Define Paths in PHP lines: 3 , 4 of php file 4. Create matching folder to paths in #3 on server. 5. chmod that folder...
4 1209 posted 16 years ago by jadedbat
This uses the concatenation operator "##" to insert a comment "//"
0 5239 posted 16 years ago by jimfred
Should also work in IE6 because of the filter
5 1246 posted 16 years ago by 1man
Using Groovy you can extend the Sql, DataSet and GroovyResultSet objects present in the language to do simple object mapping similar to iBatis et al. An example of using the code below /* POGO used in the mapping */ class BranchFax {...
0 1347 posted 16 years ago by kouphax
I thought I would share this simple username password PHP auth script. It leans on HTTP to secure a page.. not bulletproof but quick and painless.
3 1109 posted 16 years ago by jadedbat
This is simply to serve as a reminder for me as to Firefox's desired font size based on a 16pt base.
0 1070 posted 16 years ago by conspirator
0 826 posted 16 years ago by czapata
1 919 posted 16 years ago by ascarion
These are code snippets from different files for a Pylons project that show a working (provided the environment) htmlfill example.
1 1310 posted 16 years ago by wackysalut
2 982 posted 16 years ago by AzizLight
Here is a well formed list of all U.S. States, with their names, abbreviation and all Counties in each state.
1 1475 posted 16 years ago by discorax
Used to display the latest X number of posts from the specified category.
5 1105 posted 16 years ago by creator
For use on a single page... Only displays the content if the displayed post is in the specified category. You can use the category slug or the category ID if you know it.
6 1362 posted 16 years ago by creator
Fortunately there are a couple of workarounds which are also explained in this article at Position Is Everything:
1 784 posted 16 years ago by dvdrtrgn
This source code uses the xml file posted here(http://snipplr.com/view/4138/backup-script2--confg-file/) to know which file should be sent and mailing configuration.
0 870 posted 16 years ago by mjsmagalhaes
Checks the size of skypes online "status buttons" to determine online/offline status, so you're able to use custom buttons, text.. etc, etc
2 1007 posted 16 years ago by davidsword
Q: How do I write a structure to a file? A: You can easily write a structure to a file as long as the structure is what is known as a POD (Plain Old Data) type. This means that all members of the structure must be of a fixed size, which implies th...
1 5776 posted 16 years ago by architect
Split and manipulate URLs easily with this module. It has similar interface to Python's urlparse library. This is patched and modified version from Denis's orignal implementation.
1 1291 posted 16 years ago by miohtama
It is utterly annoying when DOM event handler exceptions fail silently with Firebug. This package fixes this common problem.
0 955 posted 16 years ago by miohtama
The <code>clean</code> script shipped with the Magento downloader actually deletes too much. It's safe to run this command after updating to keep the installation "small".
0 719 posted 16 years ago by hlubek
A simple way to create a double-border effect (i.e. for images) in all browsers.
1 1057 posted 16 years ago by sidisinsane
0 895 posted 16 years ago by deepdown
Only tested in Safari 3, Opera 9.5 and Firefox 2 (all Mac OS) for now, but it should actually work. If you run into any problems, please provide some feedback.
2 1113 posted 16 years ago by sidisinsane
1 ... 452 453 454 455 456 ... 554