Welcome To Snipplr


Everyone's Recent Snippets Tagged php



1 ... 24 25 26 27 28 ... 64
I needed a way to generate some random strings for passwords, a number of methods seemed a little over the top so below is my simplified version that does the trick. I have set it to use non-confusing characters, so no i's, l's, 0's but very easy to...
0 1374 posted 14 years ago by motlive
2 1708 posted 14 years ago by simondiercks
Data Types for DB, MySQL, SQLite, PHP, Ruby, Rails, JS, etc. because I forget them sometimes from Ruby on Rails Guides: Migrations http://bit.ly/hFWjT0 from Rails Migrations http://bit.ly/hI5zpz
0 1698 posted 14 years ago by brandonjp
## Benefit To notify visitors that the current post they are viewing is an old post. Suitable for Blog / Website that provide timely articles
0 1407 posted 14 years ago by firewalker06
0 1519 posted 14 years ago by pickyj
0 1581 posted 14 years ago by rstandley
Inserts WordPress shortcode outside the loop in a template
1 1168 posted 14 years ago by primitiveshaun
5 2280 posted 14 years ago by pickyj
0 2464 posted 14 years ago by silentpro
0 1237 posted 14 years ago by stephcode
I'm using this out of laziness. PHP is slowing things down here, since it's not as close to C as XPath. A better solution would be to have an attribute specifically for search purposes (either in upper or lowercase).
0 1515 posted 14 years ago by iroybot
simple one minute, you must have whois on your system
1 1020 posted 14 years ago by exu
A simple one page form with attachment that is meant to go straight to the email and not uploaded to the server. Emails an HTML version, a PlainText version and the attachment if there is one.
4 2219 posted 14 years ago by StevenW721
0 1199 posted 14 years ago by abteilung
This help you cutting text without cut the last word. Any feedback appreciated!
0 1342 posted 14 years ago by alesma
0 1059 posted 14 years ago by jurajsim
0 2222 posted 14 years ago by alik
'container' => ' ' -- removes the container div
1 1525 posted 15 years ago by adambundy
I thought this was pretty elegant code and wanted to share it with anyone who found it useful.
0 1228 posted 15 years ago by mattneary
// example <br> $from = '2011-1-6'; <br> $to = '2011-1-8'; <br> dateDiff($from,$to); // returns 2
1 1635 posted 15 years ago by klovera
0 1292 posted 15 years ago by drifterz28
0 1239 posted 15 years ago by danhanly
0 1349 posted 15 years ago by danhanly
The uploaded file is attached to the "pid" of the recently inserted project. the "pid" variable is retrieved from the database after the project has been entered
2 1570 posted 15 years ago by danhanly
I got the answer to this question on WordPress Stack Exchange website: http://wordpress.stackexchange.com/questions/6931/is-there-a-wordpress-function-that-i-can-use-to-retrieve-the-current-page-that-is
0 2927 posted 15 years ago by racl101
To access a protected or private property, you need to create getter and setter methods inside the class file.
0 1164 posted 15 years ago by shinokada
1 1330 posted 15 years ago by neoandroid
1 ... 24 25 26 27 28 ... 64