Welcome To Snipplr
Everyone's Recent Snippets Tagged php
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
I’ve been working on a CMS lately and having to create thumbnails for uploaded images is always a pain, lots of maths working out the correct sizes and such, so I’ve created a fairly small script to manipulate images in an object-oriented style.
0
688
posted 14 years ago by dom111
Example code for a SlideDeck user to place their SlideDeck on the homepage of their WordPress site.
0
826
posted 14 years ago by oriontimbers
Since the 31 of august 2010, twitter made its API more secure, stopping basic authentication calls.
So, if you used basic authentication you have to change your code and implement oAuth authentication model or you can follow this link and found a mi...
1
1501
posted 14 years ago by ginoplusio
Add this to your .htaccess file to make PHP5 the default version on Netcologne (Germany) Webspace.
0
910
posted 14 years ago by mountbatt
allows for variable length arguments - something similar as python
func(*args, **kw)
0
677
posted 14 years ago by silviud
I needed to trim a simple numerical array that might have duplicate values into an array with no duplicates. I came up with this before finding array_unique(). D\'oh.
0
890
posted 14 years ago by beneberle
In a Project i had to save serialized arrays in a MYSQL Database, when i used that i got a Error Message for no reason (Error at offset XX of XX bytes in...). I wrote this little functions to fix that issue. (I dont recommend to save serialized Arra...
0
975
posted 14 years ago by FreaKzero
This snippet can be called in every controller, all you need to do is to specify the form name, the model name and the data.
1
703
posted 14 years ago by stolkchris
If you need to add some content to your pages without having that content in your database you can use Wikipedia API. You can, for example, need to add automatically a simple description to a city name, or to a band name. Or you could need to add the...
1
924
posted 14 years ago by ginoplusio