Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged php



1 ... 24 25 26 27 28 ... 58
I'm not well versed in international address formatting, but this seems to work for most cases. Critiques are welcome!
0 1595 posted 15 years ago by iloveitaly
run this from plugins/emotions and copy/paste the output to emotions.htm
0 2116 posted 15 years ago by hamsterbacke82
0 1828 posted 15 years ago by inky76
1 1857 posted 15 years ago by hamsterbacke82
0 1748 posted 15 years ago by lajlev
0 1458 posted 15 years ago by SalmanAbbas007
This method is easy to write, but not very efficient, as you can imagine.
2 2820 posted 15 years ago by dyteq
Use this function if you need to get the same day in the next month (or how many you need). Using defaults functions of php you got this: echo date('Y-m-d', strtotime( " + 1 month " , strtotime('2010-01-31'))); (Output: '2010-03-03') and if yo...
0 1394 posted 15 years ago by vitorbari
Summary ======= A useful function for masking arrays. Very useful if you have a function or method that takes arguments in an array, and you would like to force that array to have a specific structure. Its also great for setting defaults due to...
0 2124 posted 15 years ago by RobertWHurst
To enable error reporting for *ALL* error messages including every error level (including E_STRICT, E_NOTICE etc.), simply use:
1 1139 posted 15 years ago by Hepamin
3 2255 posted 15 years ago by alyssonweb
Takes the ID of a page, then displays a list of child pages with thumbnails and page titles. The thumbnail is generated from the 'featured image' of the particular child page.
2 1758 posted 15 years ago by martinlucas
0 1841 posted 15 years ago by rliverman
0 1611 posted 15 years ago by whak
0 1599 posted 15 years ago by dmertl
CSS: <pre><code>div.pagination { padding: 3px; margin: 3px; } div.pagination a { padding: 2px 5px 2px 5px; margin: 2px; border: 1px solid #AAAADD; text-decoration: none; /* no underline */ color: #000099; } div.pagination a:...
1 1292 posted 15 years ago by Alexxandar
Prints an array (recursive) as PHP code (can be pasted into a php file and it will work). Note: This function can process arrays with integers/strings/sub-arrays. It is impossible to process resources (they have a state), and while it is possible...
1 1895 posted 15 years ago by BrunoDeBarros
I edit this from tylerhall on 11/30/-1
0 1583 posted 15 years ago by redoc
0 1664 posted 15 years ago by kidmizere
0 1433 posted 15 years ago by Joergermeister
0 1637 posted 15 years ago by whak
If post thumbnail doesn't exist, then get the first uploaded image. Change sizes as needed.
0 2033 posted 15 years ago by vagrantradio
This will make all errors be shown and logged. Useful for when you want to figure out what's wrong but the production server doesn't display any errors.
1 1590 posted 15 years ago by BrunoDeBarros
Как сделать вывод из нескольких таблиц (php mysql) Итак, имеем: Три таблицы - articles, categories и sections. По иерархии - в sections включаются categories, а в catego...
0 1780 posted 15 years ago by graceman9
You can use this code under MIT licence.
0 2951 posted 15 years ago by digitalzoomstudio
1 ... 24 25 26 27 28 ... 58