[PHPTAL] Two sites with two identically named templates on one
server?
al
aldoogy at gmail.com
Fri May 11 00:53:51 CEST 2007
I had this problem a couple of months back - I solved it at the time
after a bit of poking and changing the tmp folder to
define('PHPTAL_PHP_CODE_DESTINATION', 'tmp');
and creating a local folder called tmp.
At the time I thought the way the tmp file names were calculated was a
bit weak.
Would it not be possible to work out a tmp file name based on the
location of the main executing script or something like that.
What happens in this situation if PHPTAL is installed as a pear library
on shared server and you are unable to change the
define('PHPTAL_PHP_CODE_DESTINATION', 'tmp');
Dagfinn Reiersøl wrote:
> Just be careful, check whether the operating system deletes the
> contents of /tmp at reboot. PHPTAL won't re-create the directories for
> you, and you'll get a fatal error when PHPTAL tries to create files in
> a non-existent directory.
>
> David Schneider-Joseph wrote:
>> You can do:
>>
>> /* site 1's index.zpt */
>> define('PHPTAL_PHP_CODE_DESTINATION', '/tmp/site_1');
>>
>> /* site 2's index.zpt */
>> define('PHPTAL_PHP_CODE_DESTINATION', '/tmp/site_2');
>>
>> On May 9, 2007, at 9:09 AM, .: smilelover :. wrote:
>>
>>> Hi,
>>> I built 2 websites using my web engine that uses PHPTAL. Both sites
>>> have a template called "index.zpt" and are served by one Apache,
>>> from two different VirtualHosts. The problem is, that PHPTAL assumes
>>> both index.zpt files to be one file and data in the template cache
>>> (in /tmp) get mixed. I have content of one site in a template from
>>> the other site. Is it possible to solve this by something else than
>>> renaming one of the templates?
>>>
>>> Thanks,
>>> Dan
>>>
>>>
>>> _______________________________________________
>>> PHPTAL mailing list
>>> PHPTAL at lists.motion-twin.com
>>> http://lists.motion-twin.com/mailman/listinfo/phptal
>>>
>>
>>
>> _______________________________________________
>> PHPTAL mailing list
>> PHPTAL at lists.motion-twin.com
>> http://lists.motion-twin.com/mailman/listinfo/phptal
>>
>>
>>
>
>
> _______________________________________________
> PHPTAL mailing list
> PHPTAL at lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
More information about the PHPTAL
mailing list