Knowledgebase

Turning Echos Into One Value

Posted by gamemaster, 07-22-2008, 11:29 PM
In the following code you will notice that the info obtained is passed on in 'echo' format, the results showing up well in a browser. However, I want all the echo out put to be ONE value that I can input in another php file. What is the best way of going about that? If I did not explain well... What I am looking for is: $output = "results and html of all the echos"; I can then call '$output' in another file via require. Thanks in advance.

Posted by Tree NC, 07-22-2008, 11:52 PM
PHP's output buffering works great in this situation.

Posted by gamemaster, 07-23-2008, 12:15 AM
Most excellent! Thank you very much, I shall keep that code close to heart.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
CPanel Backup Limit (Views: 598)
whois cart alternative (Views: 613)
How to test Squid (Views: 576)


Language:

Client Login

Email

Password

Remember Me

Search