开发者

php - echo ascii characters?

I have a string of ascii characters, but I'd like to know how to echo that a开发者_如何学JAVAs shown on this site for example:

http://binsearch.info/viewNFO.php?oid=50662038&server=

I can convert it to png using some library I found but I can't figure out what header to use to echo it like that.


It's html, with the ASCII escaped using <pre>...</pre>. You can also just deliver the raw text using Content-Type: text/plain, but then you'd lose control over font-size, etc.


What you're looking for is "ascii art". Googling for text to ascii art in php will help. Also, there's a very similar question right here on SO that recommends using figlet

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜