( ! ) Notice: Undefined variable: fontcontent in D:\wamp\www\text.php on line 12
Call Stack
# Time Memory Function Location
1 0.0010 384136 {main}( ) ..\text.php:0
( ! ) Fatal error: Function name must be a string in D:\wamp\www\text.php on line 12
Call Stack
# Time Memory Function Location
Call Stack
# Time Memory Function Location
1 0.0010 384136 {main}( ) ..\text.php:0
( ! ) Fatal error: Function name must be a string in D:\wamp\www\text.php on line 12
Call Stack
# Time Memory Function Location
2015-06-21
for($i=0;$i<3;$i++){
$linecolor = imagecolorallocate($image,rand(80,220),rand(80,220),rand(80,220));
imageline($image,rand(1,99),rand(1,99),rand(1,99));
}
header( 'content-type:image/png');
imagepng($image);
imagedestroy($image);
$linecolor = imagecolorallocate($image,rand(80,220),rand(80,220),rand(80,220));
imageline($image,rand(1,99),rand(1,99),rand(1,99));
}
header( 'content-type:image/png');
imagepng($image);
imagedestroy($image);
2015-06-21
$x=($i*100/4)+rand(5,10);
$y=rand(5,10);
imagestring($image,$fontsize,$x,$y,$fontcontent,$fontcolor);
}
for($i=0;$i<200;$i++){
$pointcolor = imagecolorallocate($image,rand(50,200),rand(50,200),rand(50,200));
imagesetpixel($image,rand(1,99),rand(1,99),$pointcolor);
$y=rand(5,10);
imagestring($image,$fontsize,$x,$y,$fontcontent,$fontcolor);
}
for($i=0;$i<200;$i++){
$pointcolor = imagecolorallocate($image,rand(50,200),rand(50,200),rand(50,200));
imagesetpixel($image,rand(1,99),rand(1,99),$pointcolor);
2015-06-21
$image = imagecreatetruecolor(100,30);//创建画布
$bgcolor = imagecolorallocate($image,255,255,255);//#ffffff背景颜色
imagefill($image,0,0,$bgcolor);//区域填充
for($i=0;$i<4;$i++){
$fontsize = 6;
$fontcolor=imagecolorallocate($image,rand(0,120),rand(0,120),rand(0,120));
;
$bgcolor = imagecolorallocate($image,255,255,255);//#ffffff背景颜色
imagefill($image,0,0,$bgcolor);//区域填充
for($i=0;$i<4;$i++){
$fontsize = 6;
$fontcolor=imagecolorallocate($image,rand(0,120),rand(0,120),rand(0,120));
;
2015-06-21