This is a useful script for anybody who wishes to get the beginning of a string up to the word break before $num of characters. Usually the use of substr will break half way through a word and leave things looking a little untidy on your site. This little function allows you to set the …
Daily Archives: February 17, 2011
Get All URLs From Page
Ever needed to get all the urls from a string or a web page? No? Well, here is a script that will do it anyway. Basically it works on grabbbing anything beginning with http, or https, up to the next double comma ” or a space. The results are then returned in an array where …
Preventing Multiple Submits
The problem of multiple form submissions is quite common in PHP. Many people use forms for database interactions and emailing etc, but when the form is submitted, the page can be refreshed and the POST data, or file uploads is POSTed once again. This tutorial brings an easy remedy to the issue with the use …
MySQL Scheduler
From the release of MySQL 5.1.6 comes the inclusion of a scheduler. The scheduler, as the name suggests, schedules tasks within the database in the same way as triggers. In fact, the scheduler is just that, a temporal trigger. Many of the tasks assigned to the scheduler have been run from cron, but not everybody …
Video Conversion With FFMPEG
By Kevin Waterson Abstract Convert Video To FLV Convert Video To JPEG Sequence Convert Every n Seconds To JPEG Convert Specific Frame To JPEG Watermark Video With Image Overlay Add Timestamp To Video
Model View Controller MVC
http://www.phpro.org/tutorials/Model-View-Controller-MVC.html http://php-html.net/tutorials/model-view-controller-in-php/ http://anantgarg.com/2009/03/13/write-your-own-php-mvc-framework-part-1/ http://www.sitepoint.com/forums/showthread.php?t=575427 http://www.henriquebarroso.com/how-to-create-a-simple-mvc-framework-in-php/ http://php-html.net/tutorials/model-view-controller-in-php/