Latest scriptiosen :D
Posted on February 12th, 2007 at 1:53 pm by Andrew
I’ve done another RS related script! Goal sigs have been a popular thing for people to use in their signatures .etc. Many sites have them and I’ve just coded my own script for it

Took me about 6 hours to get everything working, it’s integrated with phpBB - you set your goals on a panel in phpBB, get the code for the image and that’s it! It auto updates .etc. I’m pleased with how fast I got it done, doubt anyone’ll use it and sadly, the person who made the image for me simply copied it from another site:

Which is annoying as I’ll have to re-do all 23 images again.
Speed test :D
Posted on January 18th, 2007 at 10:53 pm by Andrew
I found this really good tool that could prove useful if you plan on opening a download site or similar:
PHP:
-
<?php
-
$maxNumKB = 1024;
-
$defNumKB = 4096;
-
if (!
isset($_GET['numKB']) ||
intval($_GET['numKB'])>
$maxNumKB)
-
{
-
header("Location: http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}?numKB=$defNumKB");
-
}
-
$numKB =
intval($_GET['numKB']);
-
?>
-
<!DOCTYPE html
-
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
-
<head />
-
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-
<style type="text/css">
-
<!--
-
html
-
{
-
font-family: sans-serif;
-
color: #000;
-
background: #fff;
-
}
-
*
-
{
-
font-size: medium;
-
}
-
#wait
-
{
-
border-bottom: thin dotted black;
-
}
-
#wait abbr
-
{
-
border: none;
-
}
-
#done
-
{
-
font-weight: bold;
-
}
-
#benchmark
-
{
-
padding: 1em;
-
border: 1px solid black;
-
background: #ffe;
-
color: #000;
-
}
-
//-->
-
</style>
-
<h1>Please wait</h1>
-
Transferring
<?php echo $numKB; ?>KB
-
-
<!--
-
<?php
-
function getmicrotime()
-
{
-
-
return ((float)$usec + (float)$sec);
-
}
-
-
-
$timeStart = getmicrotime();
-
-
for ($i = 0; $i <$numKB; $i++)
-
{
-
-
-
}
-
$timeEnd = getmicrotime();
-
$timeDiff =
round($timeEnd -
$timeStart,
3);
-
?>
-
-->
-
-
<p id="done"><?php
-
echo "Transferred {$numKB} KB in {$timeDiff} seconds, " .
-
($timeDiff <=
1 ?
"more than {$numKB}" :
round($numKB /
$timeDiff,
3)) .
-
' KB/s - Don\'t take this as your connection speed, it really depends on your location too ;).';
-
?>
It downloads 1MB then gives you an estimate of how fast you can download from the server. Useful little tool if you offer large downloads and need to estimate times!
HabboHTML.com
Posted on January 18th, 2007 at 10:44 pm by Andrew
It's funny, I set this site up in about 3 days ages ago and haven't looked at it since. It's got some of my neatest coding in it and for once, everything works nicely. It has useful tools, meaning and - believe it or not - active users. $0 revenue and zero maintanance. A nice layout I actually made myself from a similar design the poll software came with. Yet I've not looked at this site since. I want to sell it but it'd never be worth over $50 and I'm too attached to sell it for such a low amount.
So, to decide if I should sell or not, here's a poll from the site itself, please vote which you think is best for me to do:
Vote in my poll!
Fillermag
Posted on January 18th, 2007 at 10:35 pm by Andrew
Hmm well it seems the blog is filled with lists of pictures at the mo and it means the whole site lags when you load it (annoying!!) so I'll have to get posting some content!
First off here's a weird upside-down text on an image script I stole/modified for Matt Jones and will never use again:
PHP:
-
<?php
-
if($_GET['text']) {
-