PHP help?

Discussion in 'Customization & add-ons' started by Darcy, Nov 4, 2005.

  1. Darcy

    Darcy New Member

    Joined:
    Oct 4, 2005
    Messages:
    4
    I realize that this is more of a regular php question, but I thought that someone on this forum might be able to help.

    After our customer has logged into amember I want to send them a file when they click a link. After searching the php manual it seems that the way to re-direct the browser to get a file is with the header() function.

    Here is my php file contents:

    <?php
    session_start();
    include('/amember/config.inc.php');
    // This file does nothing but redirect to the actual file you want


    header("Location: $downloadfile",FALSE);
    ?>
    ---
    This file is called with

    sendfile.php?downloadfile=http://www.mydomain.com/support/filetosend.exe

    and it does not seem to work. It gives the IE filedownload warning, but then when I click to accept the file, it opens the file transfer dialog, but never seems to ask where to save the file.

    Any help on this would be appreciated.

    Darcy
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    If you contact support with EXACT links, we will be able to answer.
  3. Darcy

    Darcy New Member

    Joined:
    Oct 4, 2005
    Messages:
    4
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021

Share This Page