I found this tutorial, but I don't know why it does not work with firefox. It works fine with IE, can anyone help please?

PHP Code:
<?php
// initialize session
session_start();
// send header so telling the connectiont that we are about to send an image
header("Content-Type: image/png");
header('Cache-Control: no-cache');

// generate 5 digits random number
$rand rand(1000099999);

// create the hash for the random numbers and put them in the session
$_SESSION['img_random_value'] = md5($rand);

// create the image
$image imagecreate(6030);

// set the background color to white - this has to come first
$bgColor imagecolorallocate($image255255255);

// set the text color to black
$txtColor imagecolorallocate($image000);

// write the image
//imagefill($image, 0, 0, $bgColor);
imagestring($image558$rand$txtColor);

// output it to browser
imagepng($image"verify.png");

// destroy the image to free up the server memory
imagedestroy($image);


?>