Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ouput html function is...?

Status
Not open for further replies.

csbdeady

Programmer
Joined
May 18, 2002
Messages
119
Location
GB
Hi

A quick one for you all;) I've looked through the PHP docs but nothing springs to mind.

I know that there is a function(?) which will cause PHP to immediately ouput what is currently held in the memory to the html page.

For eg:

echo "123";
<function x here>
echo "456";

will cause 123 to be output prior to the output for 456 being sent.

Can anyone tell me the name of "function x" ?

Thanks!
-Colin
 
You're looking for one of PHP's Output Control Functions.

But for output control to work, you have to either have PHP configured for automatic output buffering or turn it on during your code.

Otherwise, PHP will immediately send to the browser everything you print.



Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Ahah! that's the ticket;)

"ob_..." aren't entirely an entuitive set of function names

Many thanks for the help

-Colin
 
Sure it is. Once you know that the PHP documentation's phrase for the activity is "[red]o[/red]utput [red]b[/red]uffering"



Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top