Showing posts with label testing. Show all posts
Showing posts with label testing. Show all posts

Monday, 20 August 2012

Useful PHP quick test page

I developed this page a little while ago to do quick tests. Essentially, you just put items in the text box and press submit. The benefit of the page is that all the reloading is done for you. There is no need to keep using back or forward buttons. Just carry on making adjustments to your code and keep trying. The page will use the changes you make.

In the example below, I am outputing an md5 version of my input, but you can create your own functions and just replace the bit where md5 is called (highlighted in red).

$myname = $_GET ? html_entity_decode($_GET['myname']) : NULL;
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<!--[if IE]>
<script src=""></script>
<link rel="stylesheet" href="" />
<script src=""></script>
google.load("jquery", "1");
<label for="myname">Type your string</label>
<input type="text" name="myname" id="myname" value="<?php  echo $myname; ?>" />
<button type="submit">Submit</button>
<p><?php echo $myname ? md5($myname) : NULL; ?></p>
    locStr = '<?php echo basename(__FILE__); ?>?str='+$('#myname').val();

Wednesday, 19 October 2011

I was forced to find an IE Tester

First post in a long time. I've been very busy.

Normally, by keeping to W3C standards, I can develop a site and then do some tweaks for IE at the end. Recently developed an application in which I tested for IE along the way. Or so I thought. I was in fact, testing in IE8. Not good enough. The application came out a total mess in IE7. This was one particular customers IT Department browser of choice. This seems like a ramble but I'm getting to the point.

I then discovered IE Tester at This is an excellent tool if you need to view your work in various versions of IE without messing up your existing install. It works stand-alone and also happily access pages delivered by your localhost.

Well done DebugBar!