1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Unable to Browse Parent Window with Secure Downloads Functionality

Discussion in 'PHP' started by LOLDavid, Feb 13, 2007.

  1. #1
    We do audio downloads through our site securely. We are using :

    session_cache_limiter('private, must-revalidate');
    Session_start();
    header("Content-Disposition: attachment; filename=\"$f_name\"");
    header("Pragma: public");
    //Set the content type
    header('Content-type: '.$filetype);
    header("Content-type: application/x-download");
    header("Accept-Ranges: bytes");
    header("Content-Length: $download_size");
    //Read the file into the browser.
    readfile( $path . $file );

    The issue is that using this code does not allow users to browse links in the parent window till the download is complete. The client we are working for is requiring this functionality. Please help us resolve this as soon as possible.
     
    LOLDavid, Feb 13, 2007 IP