Forum Moderators: coopster
I have a PHP page set out as below:
Header.php
<html content relevant to this page>
Advert.php
Footer.php
The header loads immediately, but the rest can take 10-20 seconds to show (It is loaded, just not showing)
I view source and upload the HTML as a whole HTML pages, it all loads and shows straight away.
I have never had this problem with using several small PHP files to build one (I use 'require' to insert the header, advert and footer).
Any ideas how to get the page to show all as one, and not have a long gap between loading and showing?
Many thanks,
W.
If this is the case, it's a problem with how the HTML was written, not PHP.
If it's not the case, you have a very very slow server, but you say that the source is there but you still have to wait 10/20 seconds, is this over dialup or broadband? If the source is actually there it's an HTML problem.
If it's broadband your page is seriously messed up, try making a test page where you include each piece one by one and see if you can pinpoint the problem include, my guess its the advert.
I have created a template which loads fine, and added the rest of the content and it seems to be working fine again. Quite annoying how tempremental it can be.
I am on broadband, and the server I use has been known to be quite 'dodgy' - this may be the reason why it is working ok now, and not before.
Is there any possibilty this has anything to do with cache and internet explorer?
W.