Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
By default Apache won't allow you to download a file over 2GB. This PHP script overcomes that along with some extra goodies.
The script will read from standard url path the file on the server to download and display the filesize along with a link...
1
1097
posted 11 years ago by deanhouseholder
To be used in WordPress template. List full taxonomy, or only custom post type associated with the post. Examples include a linking or non linking list.
2
773
posted 11 years ago by lromak
To insert custom loop of post attachments as images (at core or custom size) linked not to full size image but custom-configured (or core) size.
2
1030
posted 11 years ago by adambundy
PrestaShop Advance SEO module is offered by FME. This module is used to configure On Page SEO components of Product pages. The Meta title, keywords and descriptions can be utilized by using this module. Due to its intelligent formula this module is a...
0
960
posted 11 years ago by AlastairBrian
Traverses a multidimensional array and returns an array with the results. It also echoes the result as a string just for demonstration.
0
830
posted 11 years ago by gummiost
This is the code to add facebook comments to your wordpress site.
1
1052
posted 11 years ago by bitsculptor
This is a quick sublime snippet to quickly setup a DB table for pagination. Ideally from here you will be into a smarty template.
0
700
posted 11 years ago by brownrl
When using PDO with sQlite ->rowCount() doesn't work. the recommendation is to do a pre query to get the number. Thus, I created this snippet to help things along.
0
763
posted 11 years ago by brownrl
This simple function allows you to getect a country code and city of your site visitors, using the www.geoplugin.net service. You may use this data to add default values in registration form or use it for any other purposes, like blocking access to y...
0
1319
posted 11 years ago by apphp-snippets
This example shows you how to define custom error pages in .htaccess file and also how to display the error page on your site. You may create separate files for each error, described in Sample 1 or just create the one PHP file for Sample 2. Here...
0
916
posted 11 years ago by apphp-snippets
Der folgende Codeschnipsel enthält keinerlei Überprüfungen der übergebenen Parameter, diese sollten für den produktiven Einsatz noch nachgepflegt werden.
Wie man sieht, ist die Berechnung von Wochendenden und Feiertagen recht einfach. Diese Ber...
1
953
posted 11 years ago by satie83
*Example:*
if (!isRewriteMod()) exit('Please install Apache mod_rewrite module.');
0
836
posted 11 years ago by phpdev
Free PHP tools with code snippets for Magento;
1. Banners
2. New Products Slider
3. Request for code
4. Product solds
5. Quick contact
0
850
posted 11 years ago by robocarlo
Lists only certain files extensions as links on a page from a defined folder
1
1652
posted 11 years ago by kidmizere
This shop by brand plugin allows Magento merchants to create a separate page where all brands are listed in alphabetical order with an attractive slider on top of the page. Upon clicking on brand it takes users to the individual brand landing page wh...
0
770
posted 11 years ago by simonwalker
Magento Google maps extension allows visitors to track the nearest physical store and get the directions online. It is a useful extension for e-merchants having multiple stores on different locations.
The customers can also search for the store by t...
0
871
posted 11 years ago by simonwalker
Get all custom taxonomies that are attached to posts that have another custom taxonomy. Like fetching all categories that are attached to products that have the brand taxonomy "Nike".
0
1063
posted 11 years ago by JoshChris
Doing the echo with multiple concatenated bits of strings was very error prone and I was always getting parsing errors. The toggle format where you flip PHP on and off throughout the HTML is less error prone but is a real pain in the ass if you have...
0
837
posted 11 years ago by COBOLdinosaur
Thanks to Stephen Harris for this > http://wordpress.stackexchange.com/questions/50425/show-current-navigation-path-from-menu
1
1271
posted 11 years ago by adambundy
Change the Views Slideshow pager items in <li> elements so that they are easier to style
0
786
posted 11 years ago by mktimes5
Genius stuff right here from https://gist.github.com/BronsonQuick
1
1703
posted 11 years ago by JoshChris
Check if current post type is a custom post type – WordPress.
Returns a true/false-statement.
Can be used outside The Loop.
0
1823
posted 11 years ago by jonasethomsen
Open your function.php of your active Theme.
Copy your code insert and call the new Site URL.
After delete the code snippet.
0
1040
posted 11 years ago by WMSchneider