Welcome To Snipplr


Everyone's Recent Snippets Tagged extension



0 579 posted 13 years ago by stz184
0 522 posted 13 years ago by lolindirfaelivrin
Given a string of a file name, return the extension
1 651 posted 13 years ago by r4b87
I love creating simple little extension methods like these to improve code readability.
1 608 posted 13 years ago by mattcasto
I love creating simple little extension methods like this to make my code read more better.
0 487 posted 13 years ago by mattcasto
If you just use a `<script>` element in the overlay, the browser toolbars are reset to their default configuration (at least with jQ 1.3.2).
0 544 posted 14 years ago by eternicode
Lowercase .JPG extension
0 627 posted 14 years ago by vigoncas
For .net 2.0+ The one limitation to enumerations is revealed when you try to reverse lookup an enumeration value using Enum.Parse(). The parse function will return an inconsistent enum object if ever there are two or more enumerations with the same...
0 947 posted 14 years ago by bryanlyman
I whipped this up after finding that my worst fears were true, pathinfo is slow. Top that with in_array and you've got your self some heavy code. Nothing like regex to speed things up. This little code checks the extension of a path to see if it i...
0 517 posted 14 years ago by Oldarney
This will build and install a Dreamweaver CS4 extension automatically and silently. The version number will be taken from the *.mxi file and appended to the packed *.mxp. Set the extensionfile variable to the name of the *.mxi file without the extens...
0 769 posted 14 years ago by s3xym4n
This function works correct with files with no extension.
0 624 posted 14 years ago by kirik
Works great for parsing links in XML documents and arrays.
0 498 posted 14 years ago by stanosmith
Say that you have a collection of objects empty but for IDs. You want to do a foreach loop through those objects and lookup detail one at a time. Unfortunately, in the foreach, you can't replace the references, you can only copy the new detail...
1 887 posted 14 years ago by rengber
This method is a bit faster and more reliable then using the "explode" method. Works with PHP 4.0.3 and up.
4 759 posted 15 years ago by gdvickery
0 743 posted 15 years ago by tkf
2 603 posted 16 years ago by gbot
Il suffit de créer une page PHP et y placer un phpinfo() ou si vous avez accès au serveur en ligne de commande (Putty, WinSCP, ...), vous pouvez tapez cette commande. Dans l'exemple, nous souhaitons savoir si l'extension openssl est présente et no...
0 632 posted 16 years ago by cyo