我发现了这个话题:convert text to image in php我该如何调用创建图像功能?
我测试了Sourabh Shankar提供的代码。
当我将这段代码粘贴到一个新的空php文件中,并调整字体路径时,它就完美了!但是当我在标题('Content-type:image/png')之前或之后放置回显时,行的话,那所有的失败
有人可以提供我如何调用该图像制作者在HTML文件中的代码:
例如:
<span>Here comes the image</span>
<?php [call function??] ?>
<span>and here we continue with some HTML</span>
我需要创建一个PHP函数如果是这样的话:
我该怎么办? 如果我回复这个:
imagepng($ im);
那么他不会执行
imagedestroy($ IM);
我不知道如何做到这一点