PHP: Fatal error: Cannot redeclare class Podio in 'filepath'
Hi, I am developing a mobile application and I want to be able to list items from an app in podio in my mobile application. I therefore want to be able to parse the all items in my podio app to json format on my website. I used this library: http://podio.github.io/podio-php/. My file looks as the following where the first commented lines are used for wordpress. <?php /** * Name * Template Name: Name * * @file name.php * @package Project * @author My Name */ require_once 'podio-php-4.0.1/PodioAPI.php'; $app_id = "9255301"; $app_token = "b79cffe858c244afb2391cd02235c0e7"; Podio::authenticate_with_app($app_id, $app_token); $items = PodioItem::filter($app_id); print "My app has ".count($items)." items"; ?> My problem is when I run this on my website I get a "Fatal error: Cannot redeclare class Podio in 'filepath' . '/podio-php-4.0.1/lib/Podio.php' on line 3. Am I using this correctly? Why am I getting this error?

This question is closed.