PHP Include

Discussion in 'Customization & add-ons' started by cewncew, Mar 21, 2004.

  1. cewncew

    cewncew Guest

    I am trying to include the member.php page with the format of my own site.

    I am using
    <?php include("$DOCUMENT_ROOT/amember/member.php");
    ?>

    and getting the following error.

    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /var/www/mydomain.com/html/amember/membership.php:4) in /var/www/mydomain.com/html/amember/plugins/protect/php_include/check.inc.php on line 27

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/mydomain.com/html/amember/membership.php:4) in /var/www/mydomain.com/html/amember/plugins/protect/php_include/check.inc.php on line 27


    Please advise.

    Chuck
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    It is impossible to make it working this way.

    Customize amember/templates/header.html and footer.html instead.

Share This Page