apoorv(?),
> I want to show a loading gif or a message that please wait and
> when I get result I want to show that.
>
> I know we cab do that when we submit a form with beforesend
> function or show hide a gif but how would I do that with
file_get_contents.
I'm not sure I understand the problem: you could place/echo some HTML before
executing the file_get_contents command, and that HTML should be displayed
on the clients webbrowser (it will display as much as it can, even when it
hasn't encountered the "</BODY>" and or "</HTML>" tags yet).
<?php
echo "<h3>Loading data, please wait</h3>";
$contents = file_get_contents(....);
echo "<h3>Finished loading, now processing data</h3>";
// do something with $contents here
?>
(untested, but should work)
Hope that helps.
Rudy Wieser
-- Origional message:
<
apoorv....@gmail.com> schreef in berichtnieuws
dd778832-88ac-4924...@googlegroups.com...