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
Beshoo [ Do, 03 Mai 2007 01:51 ] [ ID #1703839 ]

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.
zeldorblat [ Do, 03 Mai 2007 04:32 ] [ ID #1703842 ]

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
Hendri Kurniawan [ Do, 03 Mai 2007 04:53 ] [ ID #1703843 ]

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.
shimmyshack [ Do, 03 Mai 2007 07:02 ] [ ID #1703845 ]
PHP » alt.php » page loading !!

Vorheriges Thema: [opinions] Ashop Commerce
Nächstes Thema: Strange fatal error in terminal