SSI inside an SSI
Posted by TedH (TedH), 10 January 2006Hi, messing about with server side includes.
I call a text file into the html page (include virtual="file.txt"). In file.txt is another include (include virtual="filenav.txt"). Now this works fine on my localhost testbed server (Indigo Perl/Apache), but when I try it on my live Apache webserver the second include does not show.
I was a bit surprised it worked in the first place locally - which is why I tried it on the live server.
Any thoughts on that? Just would make things a whole bunch (like lotsa) easier if it worked.
Posted by TedH (TedH), 12 January 2006Forgot about my conf file - didn't I
At first I thought that didn't go, but did a little trick to overide my ISP's caching (NTL have done something weird to their servers in the past week or so).
Must've have been those mince pies at Christmas.... finally kicked in.
Posted by admin (Graham Ellis), 12 January 2006Gosh ... didn't notice you post last night, Ted - sorry about that .... but you're sorted now, right?
It's been a really weird day here ... can't take too many more with such huge highs and lows. And tomorrow's Friday the 13th!
Posted by TedH (TedH), 12 January 2006Hi Graham, sounds as though you need a really nice port in front of a open fire and just stare into the flames for a bit.
This might help those of you who have caching problems with hosts or ISPs.
The problem: You've updated a page and the update doesn't show. It can take hours in some cases for it to happen. This is because ISP servers cache your surfing to "speed" things up a bit. It seems to me to be a false "speed" thing. It is also frustrating and annoying if you are a developer.
The solution: If you find an update does not show, do this. Type in your URL ... www.thesite.com?zzzzz
The ? has to be there, "anything" can be after. What it does is fool the server into thinking you are going to a different URL - and your update shows.
Don't use the same "anything" twice in a row. You can use ?abc or ?grahamneedsabreak or whatever just as long as the question mark precedes it.
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: firstname.lastname@example.org • WEB: http://www.wellho.net • SKYPE: wellho