Welcome To Snipplr


Everyone's Recent Snippets Tagged php



1 ... 37 38 39 40 41 ... 63
0 1621 posted 16 years ago by coevolve
Here is an example where the likelihood of NS is 30%, SM is 50%, and SH is 20%. I make 20 pitches and output what the batter does each time.
0 2041 posted 16 years ago by philokezzar
A simple JSON request to validate a captcha control (using the php plugin provided by Recaptcha)
0 1820 posted 16 years ago by stephanepericat
2 1600 posted 16 years ago by chippper
Changing Facebook Status with PHP, download the Mini Bot PHP class from the blog http://www.barattalo.it
1 2383 posted 16 years ago by ginoplusio
PHP function of mini bot class that lets you retrieve twitter infos from twitter nickname. ($this->attr method is part of the Mini Bot Class)
2 2416 posted 16 years ago by ginoplusio
0 1607 posted 16 years ago by m-pokrovskii
Add to functions.php file.
0 1963 posted 16 years ago by Xtraboy
/** * @param Int $week * @param Int $year * @return Array */
0 1435 posted 16 years ago by jkjeldgaard
These are important object oriented principles (OOP) that one must understand in PHP to create dynamic web applications. I hope you find this useful in understanding inheritance.
0 1571 posted 16 years ago by alvincrespo
0 1771 posted 16 years ago by jonniespratley
0 1797 posted 16 years ago by errkk
You have to add this code in your Bootstrap
1 1679 posted 16 years ago by asterfr
This is the beginning of my retrieval of twitter status class...just something im playing with right now. It retrieves the xml, saves it on your server, then you can either use javascript or php to traverse the xml tree.
0 1916 posted 16 years ago by alvincrespo
0 2082 posted 16 years ago by rccc
Just a beginning, hoping to refine this ASAP.
0 2136 posted 16 years ago by alvincrespo
A handy, generic form processor which validates presence of fields marked in a hidden value, like: <input>. Easy to override and customize as needed. Adapted from a script found in PHP 5 Unleashed.
1 2366 posted 16 years ago by nate63179
Aimed at designers who want to sprinkle in a little PHP to make development easier. If building/prototyping a site with HTML/PHP, this can save time by constructing the navigation list on the fly, based on re-usable navigation settings. Usage: Ass...
0 1565 posted 16 years ago by rareyman
Uses ajax upload from http://valums.com/ajax-upload/. Complete working script with front and back end validation. Enjoy.
1 2292 posted 16 years ago by vagrantradio
0 1801 posted 16 years ago by landonmiller
This snippet is useful if you want to include partials of another admin generated module into the current one (at runtime). This is necessary to *always* make sure that the partial is available, even after clearing the cache. And this is not always t...
0 1624 posted 16 years ago by dreadwarrior
I include this in anything I'm developing, so I can easily inspect the contents of arrays and objects.
0 1960 posted 16 years ago by joshuamilford
0 1494 posted 16 years ago by sismevu
This is useful for escaping multiple values in a POST array.
0 1998 posted 16 years ago by bradless
1 1525 posted 16 years ago by tcmacdonald
Many scripts rely on `$_SERVER[SCRIPT_URL]` which is sometimes missing. This function detects it from other server variables and fixes the missing field.
1 2964 posted 16 years ago by drwitt
Orders a multi-dimensional array by one of it's fields. There is also the option to treat this like an SQL-style 'order by' query with the $field value passed in (ie. 'user_id desc') to do reverse ordering.
0 1491 posted 16 years ago by browncardigan
1 ... 37 38 39 40 41 ... 63