Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged php
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Automatically prepends the path of the store's skin to create a full url
0
730
posted 15 years ago by nate63179
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
927
posted 15 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
1881
posted 15 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
964
posted 15 years ago by thesislab
This function assumes a custom print.css located in the custom folder.
1
688
posted 15 years ago by thesislab
Set up and array of filenames, which correspond to the file names of the images you are trying to randomize.
0
801
posted 15 years ago by paulgrenwood
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
737
posted 15 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
893
posted 15 years ago by AzizLight
Generate random plain and md5 password. Depend on Password Class
1
595
posted 15 years ago by FazzyX