Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged class



« Prev 1 2 3
Add page name slug to Wordpress body class array.
0 2391 posted 11 years ago by razvanstavila
I created this code for practice, and I looking for better and clear solution for the last instance where I can write or delete the data, but after I want to get back the content as array or the key as string. I want to use this write-read back with...
0 2492 posted 11 years ago by gitarfogas
Für functions.php
1 2428 posted 11 years ago by gabbo
0 2315 posted 12 years ago by larscmagnusson
how to disable mx ping with emailChecker class
0 2184 posted 12 years ago by jspicher
This is a Class that allows you create a letter with correct headers and send it to multi-emails.
0 2239 posted 12 years ago by Zayac
This is a static session wrapper that handles single variables and arrays. It allows setting, resetting, and deleting session variables (without destroying the session). It regenerates the session id every time a session is started to prevent sessi...
0 1361 posted 12 years ago by halk
https://gist.github.com/4098493 (examples of use below the class code) This class allows you to load a file of snippets that are really mini-templates copy them from your repository fill the token slots in them the with your data and render them as...
0 2474 posted 12 years ago by halk
A function to upload an image to the media library and set it as featured image of a post. It requires 2 params. The name of the upload field and of course the post ID. This function is part of the WPelements library class available on Github. Fee...
0 2647 posted 12 years ago by krike
A simple class to cache files (or other results) with PHP.
1 2574 posted 13 years ago by peckham
Class that convert arrays to csv format, downloads CSV files and saves to disk on server.
0 2495 posted 13 years ago by TimoZachi
Gets the constants from a class using reflection.
0 2519 posted 13 years ago by ryantxr
At line 220 you should see the the start if an if block. This is the section that needs to be edited. I added the foreach block to itterate over the data array and create links in the table cells.
0 2257 posted 13 years ago by jdhall75
Abstract class from which other classes can be derived to handle database access and data retrieval. Constants for database connection (DB_DSN, DB_USERNAME, etc.) must be set in another php file (eg. config.php)
1 1325 posted 13 years ago by osccar
use an object as an array
0 2424 posted 13 years ago by prwhitehead
A class i started to implement, which ended up in a working concept However I'm not sure if it's a legal way of programming since I unnessesery changes the structure of php without some real value except nicer structure For now it remain a conce...
0 2258 posted 13 years ago by Knarf
Very simple to use Web Poll Class, simply create a new instance, set the question and set the answers. You still have to set up your database yourself
1 1190 posted 13 years ago by RobertHegeraad
Simple class to retrieve an ID using a URL of the Youtube
0 1936 posted 13 years ago by leandroperes
This is a sample class being used for demo purposes
0 1122 posted 13 years ago by tomcottrill
Just my simple db class i use
1 1077 posted 13 years ago by cdog
1 2518 posted 14 years ago by jose_506
This is a custom class for caching results through php's session. The class can be used to cache anything, but i use it to cache mysql results so i don't have to get all the time the results by querying MySQL (wich may take a long time, especialy if...
0 2629 posted 14 years ago by TimoZachi
No modifications or testing carried out yet.
0 1810 posted 14 years ago by Huskie
Could possibly be simplified to maximise efficiency. It relies on a separare WP Sleek framework function sleek_get_theme_menu_name. This could ideally be improved to allow the theme location to passed as a parameter somehow.
0 1778 posted 14 years ago by Huskie
A Class to Logging false logins and more...
0 1151 posted 14 years ago by Darksider3
No Comment^^
0 1236 posted 14 years ago by Darksider3
0 1379 posted 14 years ago by willem
0 1352 posted 14 years ago by nathanbweb
« Prev 1 2 3