Welcome To Snipplr
Everyone's Recent Snippets Tagged php
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Database backup function that you can call whenever you want — including nightly CRONs.
6
3066
posted 17 years ago by fackz
This method is a bit faster and more reliable then using the "explode" method. Works with PHP 4.0.3 and up.
4
2109
posted 17 years ago by gdvickery
Very simple snippet to include if you want to auto update the year in a page copyright using PHP.
6
1997
posted 17 years ago by 1man
I am currently still working on this, and will make changes.
1
1734
posted 17 years ago by jonniespratley
Here is a simple method for displaying footer copyright year. This way at the end of the year you are not updating footers for the first 3 weeks in January :)
0
1456
posted 17 years ago by jadedbat
I use it when i've problems with permissions of user-uploaded files.
2
1662
posted 17 years ago by ping_ch
A simple to use framework for a contact form. This is missing some serious validation and such but is a good startin' point for any simple contact form.
The input field named 'botty' is an input field we hide with css.. if data is sent to the ha...
7
2736
posted 17 years ago by jadedbat
AJAX by default only lets you play within your own Domain.com but there are plenty of times where you want to use someone else's feed. Check out http://snipplr.com/view/12466/jquery-parse-rss-feed/ to understand the rest.
1
1585
posted 17 years ago by chrisaiv
Here's a simple one liner you can use to syntax check all php files in your working directory.
0
1356
posted 17 years ago by endorfin
In my app, we have to auto-generate usernames for our users, here is the code I did.
2
1942
posted 17 years ago by luctus