logo
Currently Browsing: Web Development
Feb
9

Alternate row colour in PHP

Over the past couple of months I’ve been developing a content management system to give myself something to aim for and achieve. What I do with the system is unknown, maybe I’ll start using it at work. Anyway, I’ve been posting some stuff on here that I may find userful for other developers, whether they know how or not. I wanted to do some alternative row colour for some table results...
Dec
10

Exiting a foreach loop in PHP

When developing using PHP you’ll run into differen’t type of loops; while, for, foreach. Some web developers have a personal preference and try to use that loop for pretty much everything they do. Some loops work better for differen’t things while others don’t perform very well. One of my favourite loops is the foreach loop. One thing I ran into was exiting the loop when after say 3...
Nov
22

Why I Use Codeigniter For My Web Applications

A web developer at some point will look at how they can speed up their development and how to make it easier to develop web applications. If you want to make this possible you are going to have to look for a framework. The dynamic language i use is PHP because of it’s easy learning curve. I’ve had a dabble with other languages such as ASP, i found PHP the easiest and it’s more widely...
Nov
18

An XSLT stylesheet does not have an XML mimetype

If you take a look at your stylesheet whether it’s for a blog or a normal website (usually found at domain.com/sitemap.xml), does it throw up the following error: An XSLT stylesheet does not have an XML mimetype? If so what you need to do is put a .htaccess file in the root of your server (if you don’t already have one) and add the following to the bottom: AddType text/xsl .xsl What this...
Nov
16

Moving/Importing Large MySQL Databases

In my daily job of web development i sometimes come to a grinding halt when a task i have to do requires a bit of tinkering. A week or two ago i had the task of moving a large mySQL Database from one server to another, and what a pain it was. First of all the size of this database was roughly 80MB, secondly the server only allowed a max upload of around 2MB via phpMyAdmin so i thought how the hell am i...
logo
© daparky.com 2009