Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged c



1 ... 47 48 49 50 51 ... 147
0 1601 posted 15 years ago by psteinweber
0 1547 posted 15 years ago by psteinweber
1 1536 posted 15 years ago by psteinweber
Pull banner ad or image code from a given text file into an array and randomize the order. Banner/image codes in the file should be separated by tildes (~).
0 1913 posted 15 years ago by bluecap
the link explains how the XML is generated.
1 2022 posted 15 years ago by iroybot
Turns a Zend_Form object into XML data. Click the associated link to see an Example XML result and a XSL Stylesheet used to display regular HMTL.
1 2441 posted 15 years ago by iroybot
A recursive function to permute the items of an array. The function returns an array that contains many arrays, where each array is a permutation of the original array. This process can get intensive depending on how many items are in the initial arr...
0 1915 posted 15 years ago by trusktr
A print_r replacement function that can handle nested arrays and strings. Usage: printr($array);
0 1766 posted 15 years ago by tasmanweb
Parses a url correctly even with a url as query parameter, also retuns dirname, basename and extension besides the other parse_url bits. See comments for more info.
0 2203 posted 15 years ago by tasmanweb
Returns the number of days in the month taking leap-years into account.
0 2044 posted 15 years ago by tasmanweb
A better and more accurate function to see if a value is an integer.
0 1935 posted 15 years ago by tasmanweb
Add code in first line your page.
0 1709 posted 15 years ago by tcelestino
works in produktdetail magento 1.4.2 & 1.5.0.1
0 1995 posted 15 years ago by nico65
Place this at the top of your php files. This will remove white space and formatting from HTML, making it smaller and faster for download by your users.
0 1962 posted 15 years ago by trusktr
Do you know that you can create a new form directly from theme template.php without the need of creating a module in Drupal 7? Armed with that knowledge, we will build a new login form and transform it to become a horizontal login bar. You migh...
0 1918 posted 15 years ago by sdxxx
0 1804 posted 15 years ago by shinokada
not fully tested maybe must be like specialprice in this excample
0 1696 posted 15 years ago by nico65
0 1842 posted 15 years ago by LemonPro
Do not forget to name images you want to use for background like 1.jpg, 2.jpg, 3.jpg etc.
0 1598 posted 15 years ago by ariunbolor
List all orders related to a product id
0 1557 posted 15 years ago by neofreko
1 ... 47 48 49 50 51 ... 147