Feb 25
Mike Dano How can I prevent coded text in a calculation from messing up my calculation?
Feb 25, 2011; 00:59
Mike Dano
How can I prevent coded text in a calculation from messing up my calculation?
I have some PHP code that I want to embed in a calculation. (What I actually
wanted was a global text field that contained the code but I am hosting the
file on a server and the hosted file will not retain the global value.)
What do I need to put before and after my code so a FileMaker calculation
ignores everything in between?
Example on my desired content:
// ref
http://groups.google.com/group/snipurl/web/is-there-a-snipr-snipurl-api
//API: 4949kf5983k237m3908424
//User: snipper
//Email: joe@anywhere.com
$unique = fm_evaluate('GetField ( "unique_id" )');
$link = fm_evaluate('GetField ( "link" )');
$sniplink = rawurlencode($sniplink);
$snipnick = rawurlencode($snipnick);
$sniptitle = rawurlencode($sniptitle);
// POSTFIELD
$postfield = 'sniplink=' . $sniplink . '&' .
'snipnick=' . $snipnick . '&' .
'snipuser=' . $snipuser . '&' .
$ch = curl_init($URL);
curl_setopt($ch, CURLOPT_URL, $URL);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
echo htmlentities($data);
#############################################################
This message is sent to you because you are subscribed to
the mailing list <fmpro@lists.lassosoft.com>.
To unsubscribe, E-mail to: <fmpro-off@lists.lassosoft.com>
To switch to the DIGEST mode, E-mail to <fmpro-digest@lists.lassosoft.com>
To switch to the INDEX mode, E-mail to <fmpro-index@lists.lassosoft.com>
Send administrative queries to <fmpro-request@lists.lassosoft.com>
Feb 25
info Re: How can I prevent coded text in a calculation from messing up my calculation?
Re: How can I prevent coded text in a calculation from messing up my calculation?
Feb 25
Mike Dano Re: How can I prevent coded text in a calculation from messing up my calculation?
Feb 25, 2011; 01:25
Mike Dano
Re: How can I prevent coded text in a calculation from messing up my calculation?
Feb 25
Mike Dano Re: How can I prevent coded text in a calculation from messing up my calculation?
Feb 25, 2011; 01:50
Mike Dano
Re: How can I prevent coded text in a calculation from messing up my calculation?
Feb 25
Steve Cassidy Re: How can I prevent coded text in a calculation from messing up my calculation?
Feb 25, 2011; 08:48
Steve Cassidy
Re: How can I prevent coded text in a calculation from messing up my calculation?
Feb 25
Resolute Systems Re: How can I prevent coded text in a calculation from messing up my calculation?
Feb 25, 2011; 10:17
Resolute Systems
Re: How can I prevent coded text in a calculation from messing up my calculation?
Feb 27
Drew Tenenholz Re: How can I prevent coded text in a calculation from messing up my calculation?
Feb 27, 2011; 23:58
Drew Tenenholz
Re: How can I prevent coded text in a calculation from messing up my calculation?
Feb 27
Drew Tenenholz Re: How can I prevent coded text in a calculation from messing up my calculation?
Feb 27, 2011; 23:58
Drew Tenenholz
Re: How can I prevent coded text in a calculation from messing up my calculation?
Feb 28
Resolute Systems Re: How can I prevent coded text in a calculation from messing up my calculation?
Feb 28, 2011; 10:01
Resolute Systems
Re: How can I prevent coded text in a calculation from messing up my calculation?
Feb 28
Drew Tenenholz Re: How can I prevent coded text in a calculation from messing up my calculation?
Feb 28, 2011; 07:01
Drew Tenenholz
Re: How can I prevent coded text in a calculation from messing up my calculation?
Feb 28
Mike Dano Re: How can I prevent coded text in a calculation from messing up my calculation?
Feb 28, 2011; 23:47
Mike Dano
Re: How can I prevent coded text in a calculation from messing up my calculation?