Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Code is to demonstrate the use of DocumentBuilder to parse the XML file. And retrieve the data from it.
1
1251
posted 15 years ago by PravinChk
This will recursively search your directory tree (starting at dir ‘dot’) and chmod 755 all directories only.
find . -type d -exec chmod 755 {} \;
Similarly, the following will chmod all files only (and ignore the directories):
find . -...
1
1039
posted 15 years ago by MikeyLikesIt
While these examples convert Markdown fields to HTML for use in CKEditor, the same method can be used to render the filters of any input_format.
0
1389
posted 15 years ago by zachharkey
A modification of Bill James' New Folder context menu script ( http://billsway.com/vbspage/ ), this script instead creates a "New File" item in the right click context menu of Directory Backgrounds. Upon running the New File item, you will be prompte...
0
1308
posted 15 years ago by karlhorky
Fixes an issue if you have another login form on the page with a password field.
0
1266
posted 15 years ago by linusx
This script helps you to test session persistence for your HTTP API.
Launch this.php?set=valuuue to set the session value stored to value.
Launch this.php to retrieve the value.
0
860
posted 15 years ago by asterfr
This function will fetch the real IP address of the user even if he is behind a proxy server.
1
1169
posted 15 years ago by jrobinsonc
An easy was to tunnel remote Couchdb instance into a local machine using ssh tunneling, by using the 5893 local port we enable the local instance to run (replication is only a click away).
0
1232
posted 15 years ago by narkisr
Apply an inline-block to all browsers, including IE6 and IE7.
0
926
posted 15 years ago by Meander365
This function takes an array and a key that is unwanted. It will recurse through and unset the key in the argument array and all its sub-arrays.
0
913
posted 15 years ago by thesmart
Returns window size as object.
winsize.x = window width;
winsize.y = window height;
1
1214
posted 15 years ago by djstaz0ne
PHP AdSense account monitor class, can retrieve data from your AdSense account (impressions, clicks, ctr, ecpm, earnings).
This class can retrieve (for now) only “AdSense for Content†data, for different periods of time (see class methods for mo...
0
769
posted 15 years ago by RM
You must use Google friendly domain redirect in these cases:
You changed a domain name for your web page and want the old one to redirect visitors to a new one.
You have many domains for your website (one primary and many alternative).
You want to...
1
904
posted 15 years ago by RM