0

I have a string of ascii characters, but I'd like to know how to echo that as 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.

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

Comments

0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.