[PHPTAL] Can not change template saving directory
Levi Stanley
levi at eneservices.com
Fri Apr 6 03:43:45 CEST 2007
shiznatix:
I wouldn't change the PHPTAL.php file -- espcially, if you update PHPTAL
and have to keep remembering to put back that line, I would make a core
library file, and explicitly have your line there.
But lets figure out your problem. Have you tried to explicitely put in
the define('PHPTAL_PHP_CODE_DESTINATION'... do you get the same error
message?
shiznatix shiznatix wrote:
> Yes but this is on a shared server and I can not change the
> permissions of that folder. That is why I am trying to have everything
> save to a folder that I do actaully have access to but I can not find
> it anywhere in the scripts.
>
> Anyone know where I can find that?
>
>
>> From: Laurent Bedubourg <lbedubourg at motion-twin.com>
>> Reply-To: Template Attribute Language for PHP
>> <phptal at lists.motion-twin.com>
>> To: Template Attribute Language for PHP <phptal at lists.motion-twin.com>
>> Subject: Re: [PHPTAL] Can not change template saving directory
>> Date: Thu, 5 Apr 2007 12:04:09 +0100
>>
>> 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
>>
>> _______________________________________________
>> PHPTAL mailing list
>> PHPTAL at lists.motion-twin.com
>> http://lists.motion-twin.com/mailman/listinfo/phptal
>
> _________________________________________________________________
> Mortgage refinance is Hot. *Terms. Get a 5.375%* fix rate. Check
> savings
> https://www2.nextag.com/goto.jsp?product=100000035&url=%2fst.jsp&tm=y&search=mortgage_text_links_88_h2bbb&disc=y&vers=925&s=4056&p=5117
>
>
>
> _______________________________________________
> PHPTAL mailing list
> PHPTAL at lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
> !DSPAM:1,461506ce259161336712104!
>
More information about the PHPTAL
mailing list