Php_include Not Working

Discussion in 'Setting-up protection' started by suzkaw, Jul 14, 2003.

  1. suzkaw

    suzkaw Guest

    I am trying to set the php include method of protection but it is having problems and unfortunatly the server is setup to not show errors :(
    Well any way can someone have a look at this and see if you see anything wrong?
    Code:
    <?php
    $_product_id = array(2); // or $_product_id = array(1) if it so
    include("/home/sites/www.lavox.com/web/member/plugins/protect/php_include/check.inc.php"); 
    //$_product_id = array(2); // or $_product_id = array(1) if it so
    //include("{$config.root_dir}/plugins/protect/php_include/check.inc.php"); 
    ?>
    
    I tried both ways and neither seem to work. Also from the admin page it says use /home/sites/www.lavox.com/web/member/plugins/php_include/check.inc.php but that doesn't exist?

    I have also made sure the product id is 2 so that is right.
  2. suzkaw

    suzkaw Guest

    Ok I got it working if I place the test page inside the member directory. But if I place it outside of that it doesn't work.
    For example the amember is script is in http://site.com/member/ directory and if I place the php include on http://site.com/articles/ it doesn't work. Does anyone have any ideas why this may be happening?
  3. pilot

    pilot New Member

    Joined:
    May 24, 2003
    Messages:
    178
    is this the correct absolute path?
    ("/home/sites/www.lavox.com/web/member/plugins/protect/php_include/check.inc.php");


    Strange to have www.lavox.com in it.

    I would check that and also your set up information was correct.
  4. suzkaw

    suzkaw Guest

    Yea I double checked it and it is right. This is the only server I have had one to look like that to :huh:
    Which setup info are you talking about?
  5. suzkaw

    suzkaw Guest

    I got it working. It turns out I had a .htaccess file that was causing the problems.

Share This Page