Author Topic: vTemplateCache  (Read 1360 times)

0 Members and 1 Guest are viewing this topic.

vscope

  • Guest
vTemplateCache
on: Fri, 19. April 2002 - 11:19:00
hi im currently using your template system and its working very nice.
but i have one problem regarding the
vTemplateCache.

I have the foolowing lines in my ini.php
'CACHE_DIRECTORY' => 'c:phpdevwwwtemplatecache',

but when i want to test this this i get the following errors:

Warning: fopen("c:phpdevwwwtemplatecache/localhost/template/examples/vscope.vtc","w") - No such file or directory in c:phpdevwwwtemplatevTemplatecache.php on line 153
vTemplate error: unable to write to cache file (c:phpdevwwwtemplatecache/localhost/template/examples/vscope.vtc).

i tried a lot but that but didnt get the clou.

can you help me out?

thx

vscope

releasedj

  • Guest
vTemplateCache
Reply #1 on: Mon, 22. April 2002 - 10:48:00
Hi,

I've tried to reproduce this error but to no avail.
The only way I get an error is if the cache directory does not have the correct permission set to be able to write to it.

So first check the directory permissions.
If that looks OK then try using this in the ini.php file:

'CACHE_DIRECTORY' => '/phpdev/www/template/cache'

If it still doesn't work then please post a reply.

Many thanks,

Kelvin

vscope

  • Guest
vTemplateCache
Reply #2 on: Wed, 24. April 2002 - 18:01:00
got the error.
strange but mit $GLOBAL['PHP_SELF']
was not vscope.php as it should be it
was localhost/template/examples/vscope.php
thats why he couldnt find the file

i added that small code  after line
        $file = $GLOBALS['HTTP_SERVER_VARS']['HTTP_HOST'] . $GLOBALS['HTTP_SERVER_VARS']['PHP_SELF'];
        $file= substr(strrchr($file, "/"), 1);
in cache.php

now it works nice.

thx

[size=8][ This Message was edited by: vscope on 2002-04-24 18:01 ][/size]

releasedj

  • Guest
vTemplateCache
Reply #3 on: Tue, 30. April 2002 - 17:20:00
This should be fixed now with version 3.0.0.

This problem was due to the fact that $PHP_SELF in cgi mode does not give the desired results.

Please let me know if the problem is not fixed.

vscope

  • Guest
vTemplateCache
Reply #4 on: Mon, 13. May 2002 - 11:58:00
Hi :wink:

yes the problem is fixed now.
u are doing great work with this lib!
thx

cu

vscope

releasedj

  • Guest
vTemplateCache
Reply #5 on: Mon, 13. May 2002 - 12:50:00
Great, and thanks for your help and comments.