[Zope] PHP Zope Help

Maik Jablonski maik.jablonski@uni-bielefeld.de
Mon, 29 Apr 2002 16:39:28 +0200


Todd Loomis, DMSO (SAIC) wrote:
> All:
> 
> When I use the below code instead of getting the value for 
> $encryptedpass in the SET I get $encryptedpass. What is going wrong and 
> can anyone else suggest something else?
> 
> <?
> 
> $password = "<dtml-var Password>";
> $encryptedpass = md5($password);
> 
> echo "<dtml-call "REQUEST.set('encryptedpass', '$encryptedpass')">";
> 
> ?>
>

hi,

If you use PHParser this can't work, because the whole document is 
parsed for dtml's BEFORE it's interpreted by php. so you can't put 
php-vars in the dtml-namespace and the like...

greetings, maik.

-- 
maik jablonski                    http://www.sachunterricht-online.de
  universitaet bielefeld          http://www.zfl.uni-bielefeld.de
   zentrum fuer lehrerbildung    tlph://+49.(0).521.106.4234