Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged php



1 ... 38 39 40 41 42 ... 58
Some shortcuts for retrieving URLs
0 1474 posted 16 years ago by nate63179
Puts a static block named 'contacts_text' into the page
0 1278 posted 16 years ago by nate63179
Automatically prepends the path of the store's skin to create a full url
0 1394 posted 16 years ago by nate63179
Where $_item is a product variable, and $this is a Block
0 1180 posted 16 years ago by nate63179
via @kenrick1991
1 1280 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 1657 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 3092 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 1653 posted 16 years ago by thesislab
This function assumes a custom print.css located in the custom folder.
1 1283 posted 16 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 1454 posted 16 years ago by paulgrenwood
0 1694 posted 16 years ago by petrafull
0 1350 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 1295 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 1577 posted 16 years ago by AzizLight
Easily copy a folder to a new destination.
0 1458 posted 16 years ago by dmautz1
Generate random plain and md5 password. Depend on Password Class
1 1169 posted 16 years ago by FazzyX
by m13579m
0 1576 posted 16 years ago by irm
0 1537 posted 16 years ago by stavelin
1 1876 posted 16 years ago by SteveMcDaniel
Used to convert URLs in a string into links
1 1272 posted 16 years ago by jspicher
5 1417 posted 16 years ago by SteveMcDaniel
1 1237 posted 16 years ago by SteveMcDaniel
Easy file create/write script
0 1184 posted 16 years ago by jspicher
Convert string to underscore, for SE safe URLs etc.
1 1233 posted 16 years ago by jspicher
Used to sanitize user input for email.
0 1169 posted 16 years ago by jspicher
Used to cleanly truncate text.
0 1196 posted 16 years ago by jspicher
Convert a string to number.
0 1092 posted 16 years ago by jspicher
1 ... 38 39 40 41 42 ... 58