Code: Select all
<?php
header( "Content-type: image/gif" );
$im = ImageCreate( 483, 20 ); // width, height
$red = ImageColorAllocate( $im, 255, 0, 0 );
$white = ImageColorAllocate( $im, 255, 255, 255 );
$upt = exec('uptime');
ImageString($im,3,3,3,$upt,$white);
ImageGif( $im );
ImageDestroy( $im ); // Free memory
?>I gathered the work around was to create a .htaccess file with the following:
Code: Select all
<FilesMatch "e;^.*\.gif"e;>
SetHandler application/x-httpd-php
</FilesMatch>Anyone know what's wrong
