- Many of the methods have optional arguments. For these, I have implemented them in the same order that the Flickr API documentation lists them. PHP allows for optional arguments in function calls, but if you want to use the third optional argument, you have to fill in the others to the left first. You can use the "NULL" value (without quotes) in the place of an actual argument. For example:
< ?php $f->groups_pools_getPhotos($group_id, NULL, NULL, 10); ?>
This will get the first ten photos from a specific group's pool. If you look at the documentation, you will see that there is another argument, "page". I've left it off because it appears after "per_page".
-
Some people will need to ues phpFlickr from behind a proxy server. I've implemented a method that will allow you to use an HTTP proxy for all of your traffic. Let's say that you have a proxy server on your local server running at port 8181. This is the code you would use:
< ?php $f->setProxy("localhost", "8181"); ?>
After that, all of your calls will be automatically made through your proxy server.
Archives
- May 2010
- September 2009
- March 2009
- December 2008
- November 2008
- January 2008
- October 2007
- April 2007
- February 2007
- December 2006
- October 2006
- September 2006
- August 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.