Php Include Problem -- Please Help!

Discussion in 'Setting-up protection' started by Rita Cuckovich, Dec 14, 2003.

  1. Hi,

    I have followed the directions to set up php_include protection and when I click on a file in a protected directory I get the following message:

    Product ID is not defined in called script! Died.

    I looked in the file amember/plugins/protect/php_include/check.inc.php and it seems that the variable $_product_id (which is passed from the file protect.inc.php in the protected directory) is not being passed properly or not being recognized as a valid array.

    Does anyone have any ideas why this isn't working?

    Thanks a lot for your help,

    Rita
  2. alex-adm

    alex-adm Guest

    Rita, do you include "check.inc.php" from function? The you have to declare product_id as global.
    If not, please paste part of your code here.

Share This Page