Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding version and function checks for library

  • Loading branch information...
commit 2b2502764f5502c4d87354c57d521d0b7820330b 1 parent b7b174d
@stevetauber stevetauber authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 flashfoto.php
View
7 flashfoto.php
@@ -4,6 +4,13 @@
* For FlashFoto APIv2
*/
+if(version_compare(PHP_VERSION, '5.3', '<')) {
+ echo 'This library requires PHP 5.3 or greater.';
+}
+if(!function_exists('json_decode') || !function_exists('json_encode')) {
+ echo 'This library requires json_decode and json_encode.';
+}
+
class FlashFoto {
protected $partner_username = null;
Please sign in to comment.
Something went wrong with that request. Please try again.