Share your code

PHPSnaps is a source code repository for small re-usable PHP snippets. It simply works by adding your code and sharing it with other people.

Subscribe to our RSS feed and stay updated with the latest snaps!

Latest additions

Simple benchmark timer class

Simple class to use for benchmarking your scripts performance

timer, class, benchmark, php

Added on 03.02.2010 18:51 by JAY6390

Read and RSS feed

With this function you can read any rss feed you want!

rss, xml, read, feed

Added on 02.02.2010 10:39 by Rolf

Simple PHP Pagination Class

This is a simple to use PHP pagination class object to make it easier for those not comfortable with paginating results to be able to do so with ease. Simply pass the regular query for all results, the page number, set the number of results per page and you've got a fully working PHP paginator. There are also lots of other features you can achieve including the pagination links can be customised with the templates

simple, php, pagination, class

Added on 29.01.2010 10:11 by JAY6390

ffmpeg metadata

ffmpeg metadata

ffmpeg, meta, metadata

Added on 24.01.2010 16:06 by azizce

publish and unpublic joomla function

Joomla public

joomla

Added on 20.12.2009 21:39 by babyskill

Encode video with Srt support

Encoding video and Subtitles together using Php5 and mencoder, ffmpeg

srt, ffmpeg, mencoder, subtitles

Added on 18.12.2009 15:57 by mysoogal


progress bar