I'm trying to create a custom .php file that will accept the user name and password that I post from my AIR app, log the user in and print a unique word or code depending on the subscriptions they have active. I'm an actionscript coder not a php coder and I have looked at the session variables page and the custom plugin page and I'm lost. This is what I've got so far but I don't think it's logging in: PHP: <?php session_start(); $_SESSION['_amember_login'] = $_POST['username']; $_SESSION['_amember_pass'] = $_POST['pword']; include('./config.inc.php'); $_product_id = array('ONLY_LOGIN'); require('http://www.primitivesoultattoo.com/amember/plugins/protect/php_include/check.inc.php'); $need_one_from = array(1,2,3); if (array_intersect($need_one_from, $_SESSION['_amember_product_ids'])){ print "Free"; } else{ print "not" } ?>
Take a look here and see if this help: http://manual.amember.com/Integrating_aMember_Pro_with_website
you have incorrect require. When you use URL in require php will make subrequest to that url and then will include output in your php script. So this : http://www.primitivesoultattoo.com/amember/plugins/protect/php_include/check.inc.php will be called in different request initiated by your webserver. You should use full unix file path in above "require"