[PHPTAL] Can not change template saving directory

Laurent Bedubourg lbedubourg at motion-twin.com
Thu Apr 5 13:04:09 CEST 2007


From: Levi Stanley <levi.stanley at eneservices.com>
To: Template Attribute Language for PHP <phptal at lists.motion-twin.com>
Subject: Re: [PHPTAL] Can not change template saving directory
Date: Tue, 03 Apr 2007 18:52:02 -0400
User-Agent: Thunderbird 1.5.0.10 (X11/20070326)

Looks like you have to grant access on that directory to allow writes 
and updates on windows.  That is what I had to do on Windows2003, and it 
worked like a charm.

On Tue, 03 Apr 2007 19:33:35 +0000
"shiznatix shiznatix" <shiznatix at hotmail.com> wrote:

> 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
> 
> 
> _______________________________________________
> PHPTAL mailing list
> PHPTAL at lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal


-- 
Laurent Bedubourg
lbedubourg at motion-twin.com
http://www.motion-twin.com



More information about the PHPTAL mailing list