Welcome To Snipplr


Everyone's Recent Snippets Tagged php



1 ... 41 42 43 44 45 ... 64
provide file via URL var, and script will grab it & force download. Take a look at code, and add some of your filetypes if required
2 4487 posted 16 years ago by acosonic
- fields on db with utf8_general_ci collation - make this query after any connection - put meta charset utf8 - read and write strings without problems
0 1375 posted 16 years ago by ginoplusio
A function for returning the ID of the current CMS page
1 1689 posted 16 years ago by nate63179
Some shortcuts for retrieving URLs
0 1483 posted 16 years ago by nate63179
Puts a static block named 'contacts_text' into the page
0 1287 posted 16 years ago by nate63179
Automatically prepends the path of the store's skin to create a full url
0 1400 posted 16 years ago by nate63179
Where $_item is a product variable, and $this is a Block
0 1185 posted 16 years ago by nate63179
via @kenrick1991
1 1286 posted 16 years ago by rickfu
Once the automatic button placement for the ShareThis plugin has been deactivated, this function added to custom_functions.php will place the button on single posts only (not the home page).
1 1663 posted 16 years ago by thesislab
This example uses file_get_contents to retrieve remote HTML. From there, we can parse through it using PHP5's DOMDocument and DOMXpath. XPath Queries are easy to create using the Firefox extension "XPather"
3 3099 posted 16 years ago by adamcoulombe
Add the code below to custom_functions.php to restore Thesis Options and Design Options to their defaults. Keep in mind that this has no effect on custom.css, or the other functions in custom_functions.php.
2 1658 posted 16 years ago by thesislab
This function assumes a custom print.css located in the custom folder.
1 1289 posted 16 years ago by thesislab
0 1207 posted 16 years ago by tobewan
Set up and array of filenames, which correspond to the file names of the images you are trying to randomize.
0 1462 posted 16 years ago by paulgrenwood
0 1702 posted 16 years ago by petrafull
0 1356 posted 16 years ago by unravelme1
This script will allow you to choose which site you want to login to (Choose from WHMCS, TCAdmin, Cpanel) You need to edit the action= in each form to the correct address of your website.
1 1297 posted 16 years ago by jcroom
This line can be used to refresh the current page. Submitted by philsturgeon on #codeigniter in the Freenode IRC server.
3 1582 posted 16 years ago by AzizLight
This is inspired by this http://www.cgi101.com/book/ch5/text.html so I'm using a similar example. In PHP you can combine a set of checkboxes into an array using square brackets like this: <form> <input> Red<br> <input> Green<br>...
1 2171 posted 16 years ago by ptepper
Easily copy a folder to a new destination.
0 1468 posted 16 years ago by dmautz1
Generate random plain and md5 password. Depend on Password Class
1 1172 posted 16 years ago by FazzyX
by m13579m
0 1581 posted 16 years ago by irm
0 1540 posted 16 years ago by stavelin
1 1880 posted 16 years ago by SteveMcDaniel
Used to convert URLs in a string into links
1 1276 posted 16 years ago by jspicher
5 1425 posted 16 years ago by SteveMcDaniel
1 1241 posted 16 years ago by SteveMcDaniel
1 ... 41 42 43 44 45 ... 64