This tutorial aims at teaching you how to make a simple “Web 2.0″ design.
Use the following .htpasswd generator to secure your Apache web directories. Your browser does not support IFRAMES. Please view the generator at http://edrackham.com/tutorials/online-htpasswd-generator/ Make sure you have a .htaccess and .htpasswd file in the directory you want to secure, then add the entries once you’ve generated your password.
Here is a simple MD5 hash generator I created quickly as part of a useful toolset I’m planning to build up. Your browser doesn’t support IFRAMES. You can see the MD5 hash generator here. The code to generate an MD5 hash using PHP is simple: md5($string_to_convert);
Custom Error Documents Creating custom documents gives your site a more professional look, as not only are you providing a ‘net’ to catch unsuspecting visitors when they follow a bad link and such like, but they also allow you to customise the style of the page so you can maintain your basic site design by adding HTML. # custom error documents ErrorDocument 401 /error/401.php ErrorDocument 403 /error/403.php ErrorDocument 404 /error/404.php [...]
This is an update to a previous post of mine which uses the RAND() method. Using the following code, you can retrieve a random row much, much faster (MySQL 4.1.x/5.0.x), with thanks to Jan Kneschke: SELECT FROM AS r1 JOIN (SELECT ROUND( RAND( ) * ( SELECT MAX( id ) FROM ) ) AS id ) AS r2 WHERE r1.id >= r2.id ORDER BY r1.id ASC LIMIT 1; Replace: <COLUMN> [...]
We’ve decided that IE8 will, by default, interpret web content in the most standards compliant way it can. This decision is a change from what we’ve posted previously. Don your glad rags and party hats, it’s time to celebrate! Microsoft have announced that their new interoperable release of Internet Explorer (IE8) will be standards compliant by default. Their explaination for change still hints at their stubborness though: “While we do [...]
Wow. This was definately a gig to remember! I’ve seen these guys a few times, but the amount of effort they’ve put into the release of their album has been phenomenal. The energy on stage was amazing, the music was spot on and everyone in the venue were on their feet. I really hope these guys make it. They deserve it.
UPDATE: Please see my newer atricle on how to retrieve a random row, faster, without RAND(). This post assumes you know how to create and use a connection to a MySQL database in PHP and have a table named ‘quotes’ as shown below. In this post, I will aim to teach you how to use PHP to pull random quotes from a MYSQL table of quotes. This can be easily [...]
Easy to follow PHP class tutorial (which is Object Orientated Programming – OOP). I’m not sure how to start this one… It can be quite difficult to understand PHP classes at first, but hopefully I’ll make everything seem easy! Let’s just get stuck in shall we…
Wooo! Well I’ll be moving house on Tues 12th Feb, right before my birthday too! Not that there have been lots of posts recently, but just so you know that there won’t be many over the next week or so.