请问各位大佬。。。。我的机器是XP+IIS5.0+PHP5.0
安装后,利用INFO()来测试是可以的
但是,当我尝试利用PHP写计数器的时候,就有以下的显示
代码如下: $fp = fopen("zzm.txt", "r"); $font = 4; $im = imagecreate(88,31); $background_color = ImageColorAllocate($im, 20,100,40); $foreground_color = ImageColorAllocate($im, 255,30,150); imagefill($im, 0,0,$background_color); $px = (imagesx($im)-8.3*strlen($string))/2; ImageString($im,3,$px,2,"E&J Counter",$foreground_color); imageline($im, 1, 14, 85, 14, $foreground_color); ImageString($im,$font,$px,15.5,$string,$foreground_color); Imagepng($im); ImageDestroy($im); |
Warning: fopen(zzm.txt) [function.fopen]: failed to open stream: Permission denied in c:\Inetpub\wwwroot\EXA3-2.PHP on line 9
Warning: fputs(): supplied argument is not a valid stream resource in c:\Inetpub\wwwroot\EXA3-2.PHP on line 10
Warning: fclose(): supplied argument is not a valid stream resource in c:\Inetpub\wwwroot\EXA3-2.PHP on line 11
Notice: Undefined variable: str in c:\Inetpub\wwwroot\EXA3-2.PHP on line 14
Fatal error: Call to undefined function imagecreate() in c:\Inetpub\wwwroot\EXA3-2.PHP on line 23
我是错了哪里,请各位老大指点,指点~////。。。。
[此贴子已经被作者于2005-11-7 21:02:21编辑过]