Browsing articles tagged: PHP

Permalink to Measuring The Speed Of PHP Scripts

Measuring The Speed Of PHP Scripts

On 07.08.2010 by Paul Robinson | no comments

It’s always useful to run speed tests on your scripts to check how fast they are running, and so that you can then measure any improvements when you are optimizing scripts. Here is how I do it, plus a few tips.

Permalink to Simple Data Sanitization with preg_replace

Simple Data Sanitization with preg_replace

On 06.28.2010 by Paul Robinson | no comments

Sanitizing data is a very important part of any server side scripting language, and it’s no different for PHP. So here is one simple way of sanitizing data using the dreaded REGEX.

Permalink to Writing Text On An Image With GD

Writing Text On An Image With GD

On 06.18.2010 by Paul Robinson | no comments

Writing text on your images using GD is a handy ability to have. Maybe you are developing an imagehost or you have a project where you need to place text on an existing image. Whatever the reason here is how it’s done.

Permalink to WordPress: PHP CGI Vs PHP FCGI

WordPress: PHP CGI Vs PHP FCGI

On 05.26.2010 by Paul Robinson | 2 comments

This is a little bit of a niche post, but it’s all about a problem I had recently with my site. It was all to do with WordPress and how it responded when running under PHP as FastCGI instead of CGI.

Permalink to Optimizing WordPress For Shared Hosting

Optimizing WordPress For Shared Hosting

On 05.25.2010 by Paul Robinson | 10 comments

There are lots of websites hosted on shared hosting in this age, and the majority are probably running WordPress. While it’s a great application once set up with plugins it isn’t the lightest one on the block. Here we are going to look at making WordPress as shared server friendly as possible.

Permalink to PHP Basics: The Switch Statement

PHP Basics: The Switch Statement

On 05.20.2010 by Paul Robinson | 2 comments

Today we are going back to basics with a small tutorial on how to use the PHP switch statement. They can be extremely useful, but knowing how to use them properly can save you a lot of time.

Permalink to Showing Or Saving An Image Retrieved Via cURL

Showing Or Saving An Image Retrieved Via cURL

On 05.11.2010 by Paul Robinson | 2 comments

As a developer cURL can be a very handy for numerous reasons. In my case I have used it for my plugin Twitter Stream, but here we are going to look at a little tip I stumbled across while playing with cURL.

Permalink to Solving PHP File Uploading Errors Caused By Mod Security

Solving PHP File Uploading Errors Caused By Mod Security

On 05.07.2010 by Paul Robinson | 2 comments

Today’s latest & greatest PHP based applications generally have some sort of mass media upload system integrated with them. Sometimes though you get error after error when using these new mass uploaders. Here is one way that may fix them.

Permalink to Using File Writing To Log Errors In Your PHP Application

Using File Writing To Log Errors In Your PHP Application

On 05.06.2010 by Paul Robinson | no comments

When writing a PHP application it’s very important to give out nice friendly error messages to anyone using the application. The problem? You don’t get any detailed error information. To help we can add file logging to log the detailed error information.

Permalink to Using PHP & MySQLi With A MySQL Database Part 2

Using PHP & MySQLi With A MySQL Database Part 2

On 04.29.2010 by Paul Robinson | 1 comment

Continuing on from the last post which covered the basics of connecting to a database using MySQLi, we are going to look at inserting, updating & deleting data. Finally we are going to look at some of the miscellaneous features of MySQLi.


Page 1 of 41234