Create an RSS feed

Create an RSS feed

Saturday 13th of March 2010 in PHP

This tutorial will explain how to create an RSS feed, That is easy to setup but also validates as a valid feed.

Checout the Demo

In order to be able to create a feed we need some data to work with, I've created a database table called news with the following structure:

Create a simple FTP class

Create a simple FTP class

Friday 12th of March 2010 in PHP

FTP is well known to all designers/developers to moves files from a local computer to a remote web server, What if you want to copy a file from one server to another? the recommended choice would be to use SSH or telnet but if you don't have access to these then you would download the files via FTP and then upload them to the new location.

there may be times where you just want to copy a single file to another server connection via FTP and download then uploading seems a little tedious, a better way is to copy the file directly from the current server to the new server. To do this I'm going to create a simple OOP FTP class that will do the heavy lifting for me and let me repeat the process as many times as required.

Article pagination with OOP (split article into pages)

Article pagination with OOP (split article into pages)

Saturday 9th of January 2010 in PHP

When you have a long article you may want to split the article into pages. This is easy to do on a static page but what if you have a dynamic page if would be better to let php split the article into pages every time you have a certain tag like say [more].

Strip tags from a string

Strip tags from a string

Tuesday 5th of January 2010 in PHP

From time to time you may need to remove certain tags from a string but leave other tags in tact, This tutorial will show you how to accomplish this.

Delete rows from a MySQL database with a confirmation

Delete rows from a MySQL database with a confirmation

Saturday 28th of November 2009 in PHP

Delete rows from a MySQL database with a confirmation

This tutorial shows you how to delete rows from your database and uses a JavaScript powered confirmation basically when you press delete a confirmation message will appear asking if you want to delete then item making sure you meant to delete it.