Welcome To Snipplr


Everyone's Recent Snippets



1 ... 446 447 448 449 450 ... 554
Put this in settings.php
2 1224 posted 16 years ago by aleprieto
2 1371 posted 16 years ago by iloveitaly
For database inserts must be made some site on "http://redirect_host:port/.../" with nice getip function: http://snipplr.com/view/10946/
0 1134 posted 16 years ago by paramah
1 847 posted 16 years ago by paramah
2 1056 posted 16 years ago by paramah
Well, not the best one...
1 1078 posted 16 years ago by Sn0opy
Figure 5. Selecting the first-child LI elements that descend from a UL element. By combining the first-child pseudo-class with the adjacent-sibling selector, it's possible to pick children other than the first one. For example, you might want to a...
0 955 posted 16 years ago by davebowker
Checks for a valid email address using the php-email-address-validation class. Source and docs = URL
0 976 posted 16 years ago by fruehjahr
2 1001 posted 16 years ago by fruehjahr
Forces a user to download a file, for e.g you have an image but you want the user to download it instead of displaying it in his browser.
0 979 posted 16 years ago by fruehjahr
Again, as part of the DCODR development I had to find a decent way to get the selection HTML
0 2137 posted 16 years ago by optimal
1 762 posted 16 years ago by fruehjahr
3 1112 posted 16 years ago by fruehjahr
Developed as part of my DCODR experiments...
0 947 posted 16 years ago by optimal
0 831 posted 16 years ago by archlight
1 942 posted 16 years ago by archlight
I think this is php 5 only
0 923 posted 16 years ago by jfherring
Based on Jdub7's Pure PHP Template function http://snipplr.com/view/10797/pure-php-template-function/
2 952 posted 16 years ago by thermosilla
Return just the Apache version number of your server, and operating system, from $_SERVER['SERVER_SOFTWARE'] Example: print ('Apache Version: ' . apacheversion()); will return something along the lines of... "Apache Version: 2.2.10 (Unix...
1 2067 posted 16 years ago by iridium
Simple but useful function for getting a single piece of data from a database and placing it straight into a variable. Example: $variable = one_result("SELECT columnOne FROM table WHERE columnTwo=whatever"); This would insert the value of colu...
1 808 posted 16 years ago by iridium
To find the latest file in a particular dir
1 1138 posted 16 years ago by jaduks
Simply paste the list of URLs into stdin. You can add the option `-P 4` to parallelize the downloads.
1 1013 posted 16 years ago by xenonite
another way to set / create a date using jodatime download jodatime at http://joda-time.sourceforge.net/
1 1004 posted 16 years ago by callmeblessed
create a date using Calendar
1 1202 posted 16 years ago by callmeblessed
1 ... 446 447 448 449 450 ... 554