moving entries.txt

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
happy guest

moving entries.txt

Post by happy guest »

Script URL:
Version of script:
Version of PHP:
Hosting company:
Have you searched THIS FORUM for your problem:
(if not please do before posting)
If so, what terms did you try:

Write your message below:

Hi,
I've tried moving the entries.txt file to another location other than in the gbook directory. I used an absolute address in settings.php, e.g., www.mydomain.com/logs/entries.txt. The file chmod is 666. But Gbook gives an error and can't open the file. When I take out the address and just use 'entries.txt", it's fine. What am I missing?
Thanks for your help.
pete
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

I have tried this and indeed an absolute path does not work.
A relative path does work.

So if you have these directories
www.mydomain.com/gbook/ which contains the gbook files
www.mydomain.com/logs/ which contains entries.txt

Change the path for $settings['logfile']="entries.txt";
to $settings['logfile']="../logs/entries.txt";

Greetings,
Henrie
Post Reply