Hi,
I have created a PHP image gallery, which i've put a no-style version at
http://www.thedaffodilsociety.com/gallery2. For some reason random pages in the gallery are showing as only coding with headers. Some times they show correctly as images and sometimes just code. There seems to be no pattern to why this is happening. Normally the header will look something like this when only code shows:
Then this will be followed by all the html on the page. I'm really struggling to work out why this is happening. I've been through the php code many times, reset the apache server, created an image gallery with absolute links to check there's no problem with the server showing images, and checked the error logs. The only erroneous error in the logs is this:
I am on a shared server so am limited to what I can access to fix this, but does anyone have any idea why this problem is happening or what I could do to solve it? The next thing I'm going to look into is caching, but I'm a relative newbie so am gonna have to have a good read before I dive into that one, but if anyone has any advice on caching, especially around the database that would be really good, because the only thing I can think that is wrong with it at the moment is simply that my server can't keep up!
Many thanks!
Russ