Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged c



1 ... 110 111 112 113 114 ... 147
Include this in any page you want to track for Google bot crawls. Adapt it to your needs (eg: MySQL log instead of e-mail announcement, etc).
9 3149 posted 17 years ago by NyX
There's no has\_children() function in WP 2.8.4, but get\_children() returns false if the post/page has no children, so it can serve the same purpose in a page template. Outside a page template you'd have to add a global declaration for the $post...
2 2328 posted 17 years ago by cyberhobo
0 2043 posted 17 years ago by renatoelias
1 1968 posted 17 years ago by iTony
gibt die url plus storeview aus, also bspw: http://yourdomain.com/de/
0 1793 posted 17 years ago by nico65
The quick and easy way to insert CMS Blocks into template (.phtml) files without any layout modifications:
0 2825 posted 17 years ago by nico65
Put on top of script
1 2227 posted 17 years ago by gerhardsletten
1 1883 posted 17 years ago by iTony
Dies zeigt die StoreView ID an <?php>getStore()->getId(); ?><br> Dies zeigt den StoreView Namen an<?php>getStore()->getName(); ?> Dies zeigt die StoreNamen ID an<?php>getStore()->getGroupID(); ?> Dies zeigt den Storenamen an <?php>getStore()->getG...
0 1754 posted 17 years ago by nico65
1 1818 posted 17 years ago by traeregan
This function is very helpfull when you need to put some data (that was gotten from database) to HTML table. You can choose vertical or horizontal types. **Horizontal type:** | 1 | 2 | 3 | | 4 | 5 | 6 | | 7 | 8 | 9 | **Vertical type:**...
1 3213 posted 17 years ago by kirik
Just a function for correct redirecting *UPD1* header added for Google Chrome
0 1556 posted 17 years ago by kirik
Function for sanitize input POST, GET, COOKIE arrays.
2 2150 posted 17 years ago by kirik
This is a simple way to stripe alternate rows of output or to do anything different as I process each alternate row. Typically, I set the <tr> element's class to "myEvenRow" or "myOddRow" then output the <tr> data just after the IF statement. I f...
4 2146 posted 17 years ago by dizzley
By requinix
0 1690 posted 17 years ago by smoover
This will return the URL for the category specified (17 in this case)
2 2501 posted 17 years ago by zachwood
Add this snipp to any page's body in the cms to show a category's items on that page. "category_id" being the id of the category, duyee.
1 2206 posted 17 years ago by zachwood
Create a custom 404 handler page which redirects you to the correct page.
1 1797 posted 17 years ago by Meander365
Converts a given RGB colour value such as that provided by the imagecolorat() function into an html compliant colour.
1 1950 posted 17 years ago by h4rrisonjames
3 2327 posted 17 years ago by fackz
Determines whether or not the page has been requested directly, or through AJAX. This can allow for combining a page and related AJAX responses within the same script.
1 3104 posted 17 years ago by Wilco
count files in a given dir
2 2230 posted 17 years ago by fackz
2 2149 posted 17 years ago by iTony
this function formats a web address for use in a link.<br> echo formatWebAddress("google.com");<br> http://www.google.com/
1 2062 posted 17 years ago by jlvallelonga
This is one of my favs to use and reuse. Essentially, we make a select box on what is in the table filled values/labels. Download the ISO countries list to make a country table and Bam! with this function you got a country select box... Also grea...
1 1777 posted 17 years ago by brownrl
use this function to insert a string into another string at a certain position.<br> echo insertString("legendary", " wait for it ... ", 5);<br> legen wait for it ... dary
0 1791 posted 17 years ago by jlvallelonga
1 ... 110 111 112 113 114 ... 147