Page 1 of 1
Remote Include TLD Block
Posted: Tue Jul 19, 2005 5:55 am
by Judge
Hi all,
Is it possible to use remote includes for the TLD Block as I would like to be able to download this from my www server instead of reading it from a file.
I have tried and guessing it doesnt work or I have the syntax wrong. Can anyone please confirm if possible and provide and example tld block.
Cheers
Posted: Wed Jul 20, 2005 9:39 am
by Dukat
What error did you get?
Posted: Thu Jul 28, 2005 7:15 am
by Judge
Umm, its not in the error log... it was something along the lines of unable to connect to server... which I though was strange as I load my confs from the same server, same path, just about the same include line...
Anyways... if someone could post a copy of a working TLD block that uses remote includes it would help a lot as I just need to see the syntax so I know if I got it wrong or not.
Cheers.
Posted: Thu Jul 28, 2005 9:00 am
by Stealth
IIRC, The TLD blocks don't support remote includes. The files must be stored locally. A way around this is to make a cron script to wget the files and simply /rehash when you make a change and the files have been updated by the cron script.
If you have a Windows server that needs the remote includes, there is a Windows version of wget, and you can use the Windows Task Scheduler (This would be called the "Scheduled Tasks" thing found in Start > Programs > Accessories > System Tools on Windows XP and 2K and 2K3)
Posted: Thu Jul 28, 2005 10:18 am
by Judge
ok, thanks Stealth