[FX.php List] Converting from CDML to fxPHP ....what to do with -Token

Gjermund Gusland Thorsen ggt667 at gmail.com
Tue Dec 20 02:17:06 MST 2005


http://php.net/session

On 12/19/05, DC <dan.cynosure at dbmscan.com> wrote:
> If you are on FMP7 then you just need to learn about Sessions as
> suggested earlier. Tokens suck - there were only 9 and they were so
> cumbersome to use! You are in for a sweet treat because PHP does a great
> job at managing sessions for you. Visit http://www.php.net and search on
> session.
>
> If you are still using FMP6 and you want to just get up and running with
> PHP and FX.php as quickly as possible, you can just use PHP to call your
> old CDML templates like so:
>
> <?php
>
> $old_CDML_output = file_get_contents(
> "http://domain:fmpport/FMPro?-db=db.fp5&-format=CDMLfile.html&-lay=weblayout&fieldname=searchstring&-max=1&-find");
>
> echo $old_CDML_output;
>
> ?>
>
> Then, bit by bit as you learn more PHP you can rebuild the CDML in
> another templating language - I recommend using Smarty (
> http://smarty.php.net ). I've written a plugin for Smarty that will help
> you migrate from CDML to pure PHP. It's linked off of this page:
>
> http://smarty.incutio.com/?page=SmartyFilemakerPro
>
> Cheers,
> dan
>
> Thomas Myers had written:
> > Hi,
> >
> > I am at the beginning of my conversion to fxPHP.  I am stumped right
> > away. Anyone have any ideas on how to handle things like tokens in PHP.
> >
> >
> >
> > I have a set of images with rollover. Here is the "snippet" of the issue.
> >
> >                 <td width=100%>
> >                     <p><nobr><img src="Images/GradientLine.gif" width=10
> > height=5 border=0 align=bottom><a onmouseover="changeImages(
> > /*CMP*/'ContactsL',/*URL*/'Images/ContactsC.gif');return true"
> > onmouseout="changeImages(
> > /*CMP*/'ContactsL',/*URL*/'Images/ContactsL.gif');return true"
> >
> >     href="FMPro?-db=Users&-Lay=WebLayout&-Format=ContactsFrame.htm&User=[FMP-Field:
> > User]&-Script=UpdateDate&-Token.1=[FMP-CurrentToken:
> > 1]&-Token.3=[FMP-CurrentToken: 3]&-Find"
> >                         target="_top"><img src="Images/ContactsL.gif"
> > name="ContactsL" width=86 height=31 border=0 align=bottom></a><a
> > onmouseover="changeImages(
> > /*CMP*/'ReportsL',/*URL*/'Images/ReportsC.gif');return true"
> > onmouseout="changeImages(
> > /*CMP*/'ReportsL',/*URL*/'Images/ReportsL.gif');return true"
> >
> >
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>


More information about the FX.php_List mailing list