I'm currently moving to a VPS hosted on Windows 2008 but one of my scripts doesn't work now. The error I'm getting is:
Warning: imagegif() [function.imagegif]: Unable to open 'test.gif' for writing in C:\Inetpub\vhosts\footielegend.co.uk\httpdocs\ajax\kit.php on line 28
Firstly, I'd like to let you know I'm very familiar with Windows Permissions, so it's certainly not a permissions issue. Both the images exist (I've used the same directory just for ease of access). And this has come out of a working server onto a server, both hosting the same website.
$imgname = "1-1.gif";
$im = imagecreatefromgif ($imgname);
$primary = imagecolorexact($im, 255,0,0 );
imagecolorset($im,$primary,$aR,$aG,$aB);
$secondary = imagecolorexact($im, 0,255,0 );
imagecolorset($im,$secondary,$bR,$bG,$bB);
$imgname = "test.gif";
imagegif($im, $imgname);
imagedestroy($im);