Link to home
Create AccountLog in
Avatar of pdheady
pdheady

asked on

Display entire html/php page while SOAP call? Flush output?

I have a php page that process a form and makes a soap call to a web-service wsdl.

My problem is not all the HTML displays on the page until the soap call is finished. It just displays the header and top nav. I want it to show the entire html/text/body page WHILE the soap is processing.

It just looks tacky having the top header loaded while it's waiting for the SOAP call to finish.

How can I do this?

ob_flush(); ????

Give example.


<html>
<head>
<title>ya cool</title>
 
<style>
some stuff here
</style>
 
</head>
 
<body>
 
<div>the header and top nav here</div>
 
<? the soap call here ?>
 
<div>some text and stuff here</div>
 
</body>
</html>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of hernst42
hernst42
Flag of Germany image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of pdheady
pdheady

ASKER

Are you sure because I've done this before I just cant remember how i did it previously using the Output Buffering Controls.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of pdheady

ASKER

Thanks.