Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged php



1 ... 29 30 31 32 33 ... 58
0 1235 posted 15 years ago by sandrews_06
0 989 posted 15 years ago by wireplay
0 1393 posted 15 years ago by wireplay
2 1390 posted 15 years ago by wireplay
0 2372 posted 15 years ago by wireplay
I don't want to write function empty() again and again.
0 1475 posted 15 years ago by jamepaul
Display any rss feed as html in wordpress
0 1157 posted 15 years ago by richerimage
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 1496 posted 15 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 1323 posted 15 years ago by stolkchris
0 1267 posted 15 years ago by sandrews_06
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 1693 posted 15 years ago by ginoplusio
0 1115 posted 15 years ago by mjsiemer
Useful snippets for php developers.
0 1347 posted 15 years ago by jamepaul
0 1142 posted 15 years ago by indra
By Philkav for reddit [r/mw2]
0 997 posted 15 years ago by philkav
All code should ideally go into your theme\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s template.php file. I\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'ve used the default Garland theme here as an example.
0 1332 posted 15 years ago by hiddentao
0 1141 posted 15 years ago by robksawyer
A simple one liner that updates the Auth component's session variables when the user model is updated
0 1016 posted 15 years ago by robksawyer
Allows you to still view PHP parse errors, even if you don't have write access to your php.ini file. Since PHP pages are parsed before being executed, parse errors won't show up even if you turn on display_errors in the page you are checking.
2 1240 posted 15 years ago by Moridin
0 1316 posted 15 years ago by alexandrepayet
It's fun to read what I wrote ages ago. An ORM that was heavily influenced (or should I say misguided) by CakePHP, lol.
2 1390 posted 15 years ago by fredwu
3 1501 posted 15 years ago by StephFR
Here's a little trick I started using when working with XAMPP for localhost and keeping things in tune with the live configuration variables such as username and passwords to mysql (or whatever you're writing for). The example below figures your w...
1 1120 posted 15 years ago by jackkeller
0 940 posted 15 years ago by juannaviap
1 981 posted 15 years ago by kaartz
1 1513 posted 15 years ago by yeremiloli
Paste the code in a file named style.php. Don’t forget to include your css files . Once done, open your HTML document and import style.php as you’ll import a css stylesheet.
3 1445 posted 15 years ago by math89
1 ... 29 30 31 32 33 ... 58