Tag Archives: php

What does an Ampersand sign before a PHP function declaration mean?

Only found this out today, thought I would blog it just to be helpful. If you put an ampersand before your function name, the function …

View more

Tagged: Leave a Comment

PHP Weighted Random Choice & Selection Remove / Replacement

For something I have been doing in a php project of late, I needed to weight an array of values and as I go round …

View more

Tagged: Leave a Comment

PHP frameworks CodeIgniter, Zend & Symfony

Lately I have been considering PHP frameworks and using them to speed up development of small projects, whilst also considering the MVC (Model, View, Control) …

View more

Tagged: Leave a Comment

PHP Multiple Image Upload Script / User Image Upload – That actually works!

For quite a long time now ive been seeing lots of image upload scripts which boast to be able to upload multiple images at a …

View more

Tagged: 2 Comments

PHP Functions – How to make your own function

To keep the browser from executing a script when the page loads, you can put your script into a function. A function will be executed …

View more

Tagged: Leave a Comment

How to deal with long continuous strings with a PHP function

An annoying problem when developing a messaging system or a forum is that users often decide to be childish. Spamming it with the following sort …

View more

Tagged: Leave a Comment

One line unzip and mysql dump to database

After some advice on my last post I thought id make another post with a revised version of my other post about the same topic. …

View more

Tagged: Leave a Comment

Create your own log file with php add text to a new line

I created this the other day for one my websites and find it very handy. For instance if you want to creat your very own …

View more

Tagged: 4 Comments

Php random password generator

I developed this the other day and think its a really useful bit of code to use if your looking to make yourself a strong …

View more

Tagged: Leave a Comment