Downloads

 

New Tutorial: Integrating FUDforum

I have recently published the first part in a new series of tutorials which will look at integrating FUDforum into an existing site. Part 1 looks at how to create FUD accounts for existing users, and how to ‘notify’ FUD about things happening on your site. Basically introducing your site to FUD.
Back Story
It seems forums [...]

Getting started with Dojo (part 1)

During this past weekend I was contacted by a client asking if I could implement a few new functionality requests on their site. Basically they wanted to slowly enter the world of Web 2.0, by implementing small tweaks to existing functionality.
I have been working with this client of a few years now and have [...]

NOTICES mean something

In numerous books and articles the general consensus seems to be that for a production environment Errors and Warnings should be turned on and Notices turned off; as opposed to the development environment where error reporting should be set to E_ALL (report all errors). The reasoning behind this is, Errors and Warnings mean something [...]

Trick: Image Uploads

We have all written scripts to upload files to a server, and for one reason or another I find that most of the time the script is intended for image uploads. Whenever you are uploading user files to the server it is very important that those files are validated to ensure the uploaded file is [...]

PHP Manual gets facelift

Several weeks ago an announcement was made on php.net that the new documentation build system was ready for testing. The announcement encourages everyone to use and test the new system. I should have started using it then, just to help out and find bugs, but I glanced over the new manual and didn’t really give [...]

Learning PHP

Over the weekend I was visiting a friend, who has his own website. He uses PHP on the site, but he is not a programmer. The site is his hobby and he has only learned enough PHP to get the job done. Simply put this is not his occupation.
While visiting he was in the [...]

Variable Variables

It is a rare occurrence that I find an excuse to use variable variables, but when that situation arises they are not only helpful but also fun in a way. I have often heard beginning programmers say that they find the concept difficult to grasp. I believe the confusion doesn’t stem from understanding the concept [...]

Security Resources

After posting Simple XSS Vulnerability according to my site stats, it seems there is a large number people interested in PHP security, more so than any other topic I have blogged about. Since I am no security expert I thought I would provide a few links to some quality resources on the net.
One of the [...]

Simple XSS Vulnerability

I was recently taking a small quiz in PHP as part of a job interview (by the way if anyone knows of a job opening for a telecommuting contractor, please let me know). One of the questions posed contained this piece of code which has been slightly modified for our use.

<input type=”text” name=”order” value=”<?php echo $_POST['order']; ?>” />

Basically [...]

More on Types…

Since I have neglected my blog this week I decided to write a small continuation of the discussion on Types in PHP.
I was helping a fellow coder yesterday, and he was having problems with a simple comparison statement. The situation he found himself in was this:
A $_POST value could either be 0 (zero) or [...]

Improve the web with Nofollow Reciprocity.