Related Content
Protecting A Page From Being Directly Accessed With PHP
I was thinking recently about the number of ways in which I could restrict access to a page using PHP.
The obvious option is to create a user authentication system, but in some situations that is overkill for what is required. If you just want to prevent users from going directly to a certain page then there are a few options open to you.
Generating Colour Palettes From Images In PHP
A common web design pattern is to incorporate an image into the design of the page. This creates a tighter integration with the image and the rest of the page.
The main issue in designing a page around the image is that the colours of the page must match the image. Otherwise this creates a dissonance between the image and the styles of the site.
Validating XML Files With XML Schema Definitions In PHP
XML is a useful format for configuration, data storage, and transmitting data from one system to another. As a human readable format that can be easily read by machines it quickly gained favor in lots of different systems as a mechanism for data storage.
Creating A Character Bitmap In PHP
I was watching a video from NDC by Dylan Beattie the other day on The Story of Typography and a particular section stood out to me.
Approximating Pi Using A Circle And A Square
Pi day was a few weeks ago, but I came across this simple approximation of pi recently and decided to put together an example in PHP since it seemed pretty simple.
This approximation of pi centers around a real world example, but we can simulate this using some code.
Drawing A Parabolic Curve With Straight Lines In PHP
A parabolic curve is a type of curve where every point is an equal distance from a focal point. There a number of different way to generate this sort of curve using math, but one of the simplest is to use straight lines to create the illusion of the curve.
Comments
Submitted by Michael Smyth on Thu, 03/05/2009 - 16:14
PermalinkI'd hoped that someone had prepared this somewhere online! Only searched for it on the off chance and you're number one in Google for it.
Thanks again, you've easily saved me an hour or two in development of my new site :)
Aaron
Submitted by Solar Monster on Tue, 04/12/2011 - 17:28
PermalinkThis saved me an hour or so ;)
Thanks :)
Submitted by Phil Lavin on Thu, 09/22/2011 - 20:21
Permalinkthis is perfect.
Submitted by Anonymous on Tue, 01/03/2012 - 01:37
PermalinkThank you for this... just noticed though Tyne & Wear is missing
Here it is
"Tyne and Wear"=>"Tyne and Wear", to be inserted after torfaen
Thanks
Keith (from Tyne & Wear)
Submitted by Keith on Sat, 03/24/2012 - 09:57
PermalinkAdded. Thanks for the tip :)
Submitted by philipnorton42 on Sat, 03/24/2012 - 19:48
PermalinkSubmitted by John Cuthbert on Tue, 07/01/2014 - 14:26
PermalinkAdd new comment