Web Development with PHP, HTML, CSS, & JavaScript

Categories: Php

Exporting MySQL table data to Excel using PHP

Wednesday 26th October 2011, 12:10 AM
How to export data from a MySQL table to an excel readable format, using PHP.

Html and plain text multipart email

Thursday 1st July 2010, 09:31 PM
How to send a html email with an alternative plain text equivalent for display on email clients unable to handle html, using php.

Allowing large file uploads in PHP

Tuesday 9th February 2010, 07:43 PM
When creating an interface for uploading files to a server through a website, there are limitations in place in the PHP configuration that you must be aware of.

Showing all errors with PHP

Friday 22nd January 2010, 06:33 PM
When developing a site with PHP, it can be a great testing tool to be able to see any errors resulting from your code. Sometimes the default server php configuration hides these errors, but you can show them with a couple of extra lines of code

Displaying a shortened Block of Text with PHP

Monday 16th November 2009, 09:26 PM
From time to time, I find myself wanting to display a certain amount of text, like and intro or snippet, from a much larger one. This could be a description or intro for an article, or news item for use on a landing page or latest news widget. For dynamic websites, where content is pulled in automatically from a database, this could cause a bit of problem.

Stripping HTML tags from content with PHP

Friday 23rd October 2009, 06:46 PM
It may sometimes be useful to remove the html tags from a portion of text, for example when you want to display a snippet of text in a paragraph, or add it to an xml feed with breaking it. There are a couple of ways to do this. The most obvious, and blanket solution, is to use the strip_tags() function in php.

Using PHP to read files from a directory

Monday 31st August 2009, 08:15 PM
It’s a really simple, and actually powerful, tool which can help create a list of files, or even a dynamically generated music playlist or photo gallery.