Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 62 63 64 65 66 ... 149
Put your images in a folder called 'random' in your ROOT directory. Please this script at the top of your page:
1 437 posted 11 years ago by blueocto
You can create a page template that you can apply to pages so only logged in members can view the contents:
0 629 posted 11 years ago by howardpanton
WordPress shortcode: Display content to registered users only
1 495 posted 11 years ago by howardpanton
2 427 posted 11 years ago by sjacunningham
I use the following code to prevent a user from getting a "webpage expired" message when hitting the back button on a page where the search results are also on the page with the form.
0 478 posted 11 years ago by bradless
Skeleton for the main panel in a CMSMS module. defaultadmin.php, with CGExtensions
1 399 posted 11 years ago by krillzip
This takes a date like so: Sat, 08 Jan 2011 from a database and allows you to use it in your code. For example if you wanted to work out a week from Sat, 08 Jan 2011 it can be done with ease. I created this for a project i am currently working on. Th...
0 400 posted 11 years ago by JonnySnip3r
Feel free to use this class however you'd like
0 539 posted 11 years ago by jschilling
Modify includes to connect and select to provide correct result set
0 735 posted 11 years ago by kidmizere
This script generates an expiring link to an Amazon S3 file
0 397 posted 11 years ago by esundahl
0 312 posted 11 years ago by takel
0 462 posted 11 years ago by takel
0 321 posted 11 years ago by takel
4 591 posted 11 years ago by takel
0 401 posted 11 years ago by gabbo
possibilitar a leitura de cada chave específica do google maps para cada domínio respectivo à chave
0 415 posted 11 years ago by rbulgueroni
Previously, I posted a little snippet I found on how to generate a special body class on each .php page. I, later, needed to get that body class and echo out a piece of HTML, which depended on my current page. So here is the snippet that I came up wi...
0 450 posted 11 years ago by danielwrobert
It's working now. Just having issue with it applying to all columns. Need to keep checking. (IE. have to tax's for testing, only one has the additional meta info attached, but they are both showing in the column as having the address as "active" (usi...
1 391 posted 11 years ago by thefrosty
This was more of a go at learning the basics of OOP, however I decided to document it well in case anyone had any comments. Note: It only works with single files, no directory usage.
0 388 posted 11 years ago by asdasDan
Add this in the functions.php file, in your Wordpress theme.
0 517 posted 11 years ago by ddavidd
From an awesome comment on how you can use PHP to apply the unique ID to to the body element. This will return the name of the PHP file being executed as the ID (e.g. body id="index.php"). To leave off the .php part, just remove the ".php" part.
0 601 posted 11 years ago by danielwrobert
0 456 posted 11 years ago by vagrantradio
This snippet check for custom field value (customfieldname), if there is nothing it will display default value (alternative text). This is my first WordPress Snippet :)
1 436 posted 11 years ago by raz
A class that implements an interface cannot override a constant defined in the interface. But any child class that extends from the implementing class can.
0 354 posted 11 years ago by denright
Refer here for a full overview: http://net.tutsplus.com/tutorials/php/quick-tip-email-error-logs-to-yourself-with-php/
9 650 posted 11 years ago by Nettuts
1 ... 62 63 64 65 66 ... 149