<br><br><div><span class="gmail_quote">On 2/6/06, <b class="gmail_sendername">Dominique Faure</b> <<a href="mailto:dominique.faure@gmail.com">dominique.faure@gmail.com</a>> 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 <<a href="mailto:jhaupt@gmail.com">jhaupt@gmail.com</a>>:<br>> On 2/5/06, H S <<a href="mailto:haadyai@gmail.com">haadyai@gmail.com</a>> wrote:<br>><br>> > Hello,<br>> ><br>
> > How should I setup more than one key in the flickr-album.php?<br>> ><br>> > Also if I have two different fields and have A key for a field and B/C<br>> keys for another field, how do I set them up ?
<br>> ><br>> ><br>> Hmm, I'm assuming what you mean is the flickr API key; what needs to be done<br>> is the key should be a global variable that can be set in config.php before<br>> including flickr-album.php
. However, I'm a little confused as to how this<br>> is done; when I initially tried setting the key as a variable and then using<br>> the variable within the function, it didn't work. If someone else can<br>> explain how to write that in the code, I'll be glad to fix it.
<br><br>Perhaps something like:<br><br>SDV($FlickrAPIKey, "put_your_API_key_here");<br><br>function FlickrAlbum($p) {<br> global $FlickrAPIKey;<br><br> require_once("phpFlickr/phpFlickr.php");<br><br>
// Create new phpFlickr object<br> $f = new phpFlickr($FlickrAPIKey);<br><br> ...<br><br>Regards,<br>Dom<br></blockquote></div><br>Thanks - I think I understand SDV and declarations better now. I've updated flickr-album.php
with this little insight and now you should be able to simply set $FlickrAPIKey = "whatever"; in each field before including flickr-album.php and it'll work.<br><br>Jon<br clear="all"><br>-- <br>Jon Haupt<br>Fine & 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>