PHP GD Library output an image and text content on same page

后端 未结 4 1176
失恋的感觉
失恋的感觉 2021-01-06 11:27

I am trying to output an image to a browser and then output HTML (not directly related to the image) on the same page. Is this possible? I am having a heck of a time figurin

4条回答
  •  执笔经年
    2021-01-06 12:01

    you can't set the header once output has been sent to the browser. Instead send everything as text/html and insert the raw image data into an img tag

    ';
    
    echo "

    ross

    "; ?>

提交回复
热议问题