page loading !!
is there any way to control the page while it loading ????
for example first i want to load firstly the body next, header , last
footer !!which i will use it in portal big site ???!!
thanx in advance
Re: page loading !!
On May 2, 7:51 pm, Beshoo <basheerm... [at] gmail.com> wrote:
> is there any way to control the page while it loading ????
> for example first i want to load firstly the body next, header , last
> footer !!which i will use it in portal big site ???!!
>
> thanx in advance
You can try placing flush() at various points in your script:
<http://www.php.net/flush>
This will tell PHP to "send" everything that has been output so far.
Note, however, that the web server and/or web browser may do buffering
of their own.
Re: page loading !!
ZeldorBlat wrote:
> On May 2, 7:51 pm, Beshoo <basheerm... [at] gmail.com> wrote:
>> is there any way to control the page while it loading ????
>> for example first i want to load firstly the body next, header , last
>> footer !!which i will use it in portal big site ???!!
>>
>> thanx in advance
>
> You can try placing flush() at various points in your script:
>
> <http://www.php.net/flush>
>
> This will tell PHP to "send" everything that has been output so far.
> Note, however, that the web server and/or web browser may do buffering
> of their own.
>
If I may add, you can also use JavaScript (Ajax) to load different
section of your pages.
Of-course there are pro/cons on using it.
Hendri Kurniawan
Re: page loading !!
On May 3, 12:51 am, Beshoo <basheerm... [at] gmail.com> wrote:
> is there any way to control the page while it loading ????
> for example first i want to load firstly the body next, header , last
> footer !!which i will use it in portal big site ???!!
>
> thanx in advance
not sure what you mean by "control" as it loading...
but you could use different calls to
include('header.html');
include('body.html');
include('footer.html');
thats all I can think given the phrasing of your questin if you can
provide an example we might be able to be more helpful.