Browsing the archives for the php tag

Prevent Image Caching

Browser image caching was causing me a problem today.
When a user of a client site uploads a profile image, it intentionally overwrites the old image. However, when viewing the profile page, the old image is shown unless you refresh the page.
Preventing browser image caching
The solution was quite simple. In order to force the browser to [...]

No Comments Posted in Web development, php
Tagged , , , ,
PHP Multidimensional Arrays

Multidimensional arrays are arrays which contain arrays and each of those may also contain arrays. There is no limit to the number or level of sub-arrays.

No Comments Posted in php
Tagged , ,
What are PHP recursive functions

Recursive functions are functions which call themselves. They are particularly useful when working with multi-dimensional arrays. However, using recursive functions should be avoided if the function is likely to be called over 200 times, as it may kill the script.

Here is a very basic example of how one could use a recursive function in PHP:

<?php

# [...]

No Comments Posted in Web development, php
Tagged , , ,
What is Codeigniter

CodeIgniter – created by EllisLabs and first released in 2006, CodeIgniter is a freely available MVC web application framework used for developing websites using PHP.
CodeIgniter ships with a large library commonly used OOP classes, enabling the developer to call them rather that using time creating her own. When compared to other similar MVC frameworks, [...]

1 Comment Posted in Codeigniter
Tagged , , ,
Database connection script

No doubt you already use a database connection script. As a developer, you probably use different servers throughout the development process. When you move your application from one server to another, you maybe have to change the database connection script in order for the application to work on the new server.

If you forget to update [...]

1 Comment Posted in Web development
Tagged , , , , , , , ,
PHP lessons

Over the passed few months, I have received numerous comments from people, on the same course as me, to the effect that they wished I would teach them PHP.
I have decided to call their bluff and offer to run classes during the summer. Well, I have been surprised by the overwhelming response and have set [...]

No Comments Posted in Education, University, Web development
Tagged , , , , ,
PHP exam & certification

A couple of weeks ago I took a PHP exam as part of my university course. Results came out last week and I was pleased to be awarded 82% – top of the class!
This is all very good and something to be happy with, but, would it be recognized by industry?
Certification
I guess the best thing [...]

No Comments Posted in Education, General, University
Tagged , , , , , , ,
MD5 Encryption

If you need to use message-digest algorithm 5 (md5) to encrypt words or phrases, please feel free to use this tool I created for my own use:

Free MD5 encryption tool

No Comments Posted in General
Tagged , , , , , , ,
Search Engine Friendly URL's

Ok. I’m going to try to KISS this article.

I realised that I needed to change the URL’s on my website. They were similar to this:

www.domain.co.uk/genericpage.php?pagename

This method allows for a degree of dynamism. It allows for just one page to display all the content. Everything after the ‘?’ are arguments with which my script selects content [...]

No Comments Posted in Web development
Tagged , , , , , , , , , , , ,