[PHPTAL] Can not change template saving directory

shiznatix shiznatix shiznatix at hotmail.com
Tue Apr 3 21:33:35 CEST 2007


Hello,

I am trying to change the directory that PHPTAL is saving it's temp files to 
from

c:\WINDOWS\Temp

to

D:\Inetpub\mediapostinc\lib\tal_templates\

so I went and opened up the PHPTAL.php file and changed what I figured was 
the relative portion of the code to this:

if (!defined('PHPTAL_PHP_CODE_DESTINATION')){
    if (PHPTAL_OS_WIN){
        if (file_exists('D:\\Inetpub\\mediapostinc\\lib\\tal_templates\\')){
            define('PHPTAL_PHP_CODE_DESTINATION', 
'D:\\Inetpub\\mediapostinc\\lib\\tal_templates\\');
        }
        else {
            define('PHPTAL_PHP_CODE_DESTINATION', 
'D:\\Inetpub\\mediapostinc\\lib\\tal_templates\\');
        }
    }
    else {
        define('PHPTAL_PHP_CODE_DESTINATION', '/tmp/');
    }
}

well that kinda worked but not really. with error reporting turned all the 
way up i get this error:

Error number 2:
Unknown: open(C:\WINDOWS\TEMP\\sess_r3t3a8cc11ddthulofgc9l9fs7, O_RDWR) 
failed: Permission denied (13)
Line: 0     File: Unknown

and for some reason this is also blocking me from using sessions and 
whatnot. I can't save it to the temp directory because it is a shared folder 
and there are limitations on what i can change and whatnot so I want to make 
it save to my own directory which i have control over but when I change it, 
this stuff is still showing up. How do I go about fixing this?

_________________________________________________________________
Need a break? Find your escape route with Live Search Maps. 
http://maps.live.com/?icid=hmtag3




More information about the PHPTAL mailing list