Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
uFlex or userFlex is an all in one PHP user class that provides developers with a simple yet secured, reliable and flexible framework like structure to authenticate their sites and applications. The purpose of uFlex is to handle the tedious processes...
1
1495
posted 14 years ago by ptejada
Best used in a node.tpl.php or node-panel-identifier.tpl.php
0
1118
posted 14 years ago by karmacode
I couldn't easily find an example of how to verify if someone added my link to their site while they added their link to a directory of mine. After some research, I found out how to search for a string remotely. I have simplified the steps so that yo...
0
782
posted 14 years ago by donkeykong
You can see the results under a single post, where photos are shown, without any text. The photo is taken from the uploaded photo from the post. All you need is the get the image plugin from www.justintadlock.com
0
879
posted 14 years ago by Kokkekniven
The first argument is a variable name which value should be extracted from $array (second argument), or array of keys (multidim array is also supported).
The third argument is a default value which will be return on fail (false by default).
Usage...
0
1042
posted 14 years ago by and
All it takes is a stylesheet and a small function in the theme’s functions.php file
1
892
posted 15 years ago by math89
I used to have the strlen block and the 2 preg if blocks each separately return false throughout, but lately I'm in a single point of exit mindset.
I cannot take credit for the regexps - I borrowed them from someone who borrowed them. If the real...
0
928
posted 15 years ago by philsown
I found this snippet - and about 10 others like it - in an app I am re-factoring. Apparently re-factoring db\_fetch\_assoc was too much trouble, as was finding and replacing all references to it with the new function name.
0
730
posted 15 years ago by philsown
initial code and concept bitten from: http://drupal.org/project/menutrails
3
886
posted 15 years ago by electblake
you'll need this .htaccess file also
RewriteEngine On
RewriteBase /
RewriteRule .* - [E=INFO_API_VERSION:%{API_VERSION},NE]
RewriteRule .* - [E=INFO_AUTH_TYPE:%{AUTH_TYPE},NE]
RewriteRule .* - [E=INFO_CONTENT_LENGTH:%{CONTENT_LENGTH},NE]
Rewrit...
2
1099
posted 15 years ago by jessecary