Using CFImageGet directly

The classic way of using it, is to configure the top of the cfimageget.php file and allow web browsers to specify what content they wanted fed back to them. This allows for anyone with web access to specific the size, what album, what category from thier machine. While in most cases, this could be okay - but in some instances you may not want to allow anyone to specify the content, etc...

http://www.somedomainname.com/cfimageget.php?cat=7&size=large By default this sort of access is disabled... you need to edit the top of the cfimageget.php file to allow direct access to this program. Its an easy change, find $ALLOW_DIRECT_ACCESS = false and change it to true; Find this: // CHANGE THIS TO TRUE IF PEOPLE ARE ALLOWED QUERIES THROUGH HERE $ALLOW_DIRECT_ACCESS = false; And make it this: // CHANGE THIS TO TRUE IF PEOPLE ARE ALLOWED QUERIES THROUGH HERE $ALLOW_DIRECT_ACCESS = true; The only other change you need to make is to adjust your partial URL to your Coppermine Photo Gallery. This is the partial url (part AFTER your domain name, to get to the coppermine directory. So if your web browser shows: Http://www.somedomainname.com/photos you would use: $urltocpm = "/photos"; Once installed, you can test it by calling it directly from a web browser. Enter this into your address bar: http://www.yourdomainname.com/cfimageget.php This should reward you with a random image, if you have been good. Or an error if you have been bad. Usage: You can append parameters such as: size=[thumb|int|large] category=[category id#] album=[album id#] cmd=[last|random] Example: http://www.yourdomainname.com/pathto/cfimageget.php?size=int&album=4&cmd=last