<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=756432600-15082007><FONT face=Arial size=2>I am writing some
PHP rules (scripts) files.</FONT></SPAN></DIV>
<DIV><SPAN class=756432600-15082007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=756432600-15082007><FONT face=Arial size=2>In one, I have some
javascript that should exist only once per page in addition to another tag. How
do I detect that the user has use (:tag blah:) more than once so I can omit
emitting the singleton content?</FONT></SPAN></DIV>
<DIV><SPAN class=756432600-15082007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=756432600-15082007><FONT face=Arial size=2>I am trying
</FONT></SPAN></DIV>
<DIV><SPAN class=756432600-15082007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=756432600-15082007>
<P><FONT size=2>SDV(<SPAN class=756432600-15082007>'</SPAN>$<SPAN
class=756432600-15082007>Flag'</SPAN>]), 0); </FONT></P></SPAN></DIV>
<DIV><SPAN class=756432600-15082007>
<P><FONT size=2>global <SPAN
class=756432600-15082007>Flag</SPAN>;</FONT></P>
<P><FONT size=2>if (<SPAN class=756432600-15082007>$Flag</SPAN> ==
0)</FONT><FONT size=2>{</FONT></P>
<P><FONT size=2><SPAN class=756432600-15082007>
</SPAN>$codeSnippet .= "<script type=\"text/javascript\" src=\</FONT><A
href="https://domain.com/init.js"><FONT size=2>https://<SPAN
class=756432600-15082007>domain.com/init.js</A>
</SPAN>\"></script>";</FONT></P>
<P><FONT size=2><SPAN class=756432600-15082007> </SPAN>$<SPAN
class=756432600-15082007>Flag</SPAN> = <SPAN
class=756432600-15082007>0</SPAN>;</FONT></P>
<P><SPAN class=756432600-15082007><FONT size=2>}</FONT></SPAN></P>
<P><SPAN class=756432600-15082007><FONT face=Arial size=2>Am I on the right
track ?</FONT></SPAN></P>
<P><SPAN class=756432600-15082007><FONT face=Arial
size=2></FONT></SPAN> </P>
<P><SPAN class=756432600-15082007><FONT face=Arial
size=2>Thanks</FONT></SPAN></P></SPAN></DIV></BODY></HTML>