<br><br><div><span class="gmail_quote">On 2/6/06, <b class="gmail_sendername">Dominique Faure</b> &lt;<a href="mailto:dominique.faure@gmail.com">dominique.faure@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2006/2/6, Jon Haupt &lt;<a href="mailto:jhaupt@gmail.com">jhaupt@gmail.com</a>&gt;:<br>&gt; On 2/5/06, H S &lt;<a href="mailto:haadyai@gmail.com">haadyai@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; &gt; Hello,<br>&gt; &gt;<br>
&gt; &gt; How should I setup more than one key in the flickr-album.php?<br>&gt; &gt;<br>&gt; &gt; Also if I have two different fields and have A key for a field and&nbsp;&nbsp;B/C<br>&gt; keys for another field, how do I set them up ?
<br>&gt; &gt;<br>&gt; &gt;<br>&gt; Hmm, I'm assuming what you mean is the flickr API key; what needs to be done<br>&gt; is the key should be a global variable that can be set in config.php before<br>&gt; including flickr-album.php
.&nbsp;&nbsp;However, I'm a little confused as to how this<br>&gt; is done; when I initially tried setting the key as a variable and then using<br>&gt; the variable within the function, it didn't work.&nbsp;&nbsp;If someone else can<br>&gt; explain how to write that in the code, I'll be glad to fix it.
<br><br>Perhaps something like:<br><br>SDV($FlickrAPIKey, &quot;put_your_API_key_here&quot;);<br><br>function FlickrAlbum($p) {<br>&nbsp;&nbsp;global $FlickrAPIKey;<br><br>&nbsp;&nbsp;require_once(&quot;phpFlickr/phpFlickr.php&quot;);<br><br>
&nbsp;&nbsp;// Create new phpFlickr object<br>&nbsp;&nbsp;$f = new phpFlickr($FlickrAPIKey);<br><br>&nbsp;&nbsp;...<br><br>Regards,<br>Dom<br></blockquote></div><br>Thanks - I think I understand SDV and declarations better now.&nbsp; I've updated flickr-album.php
 with this little insight and now you should be able to simply set $FlickrAPIKey = &quot;whatever&quot;; in each field before including flickr-album.php and it'll work.<br><br>Jon<br clear="all"><br>-- <br>Jon Haupt<br>Fine &amp; Performing Arts Librarian
<br>Iowa State University<br>152 Parks Library<br>Ames, IA 50011<br>515-294-0904<br><a href="mailto:jhaupt@iastate.edu">jhaupt@iastate.edu</a>