isuru_it

Member
Sep 2, 2011
700
97
0
Gone From Elakiri
mata danaganna one .. mama download page ekak hadanawa. html walin 1 download 1 ta page eka gane danna giyoth page 1000k wath hadanna ona:P

mekata 1 page ekakin wage hadaganne kohomada

www.ananmanan.lk/free_sinhala_mp3 meke wage..

joomla. wordpress nam epa..

wena honda script ekak onaa

plzz help
 

DJvodka

Well-known member
  • Mar 31, 2009
    3,375
    292
    83
    A land like no other
    eka thamai mokakda scrit ekak kiyannakoooooooo:sorry::sorry::eek:

    Meka try karanna. mama test kare nehe. but this is not secure.:dull:
    <code>
    <?php
    // Don't timeout when downloading large files
    @ignore_user_abort();
    @set_time_limit(0);

    // Get list name
    $name = $_GET['file'];
    $file = "prefix_$name.tar.gz";
    $fullfile = "/usr/local/www/download/" . $file;
    // Make sure list is set and file exists
    if((!$name) or (!file_exists($fullfile))) {
    die("File wasnt set or it didnt exist");
    }

    // Create the pointer to our file and open it as read-only binary data
    $fp = fopen($fullfile,'rb');

    // Send headers telling browser to download our passed data
    header("Content-Type: application/octet-stream");
    header("Pragma: no-cache");
    header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    header("Content-Length: " . filesize($fullfile));
    header("Accept-Ranges: bytes");
    header("Content-Disposition: attachment; filename=\"$file\"");

    // Here comes the data
    while (!feof($fp)) {
    echo(@fgets($fp, 8192));
    }
    fclose ($fp);
    exit();
    ?>
    </code>
     

    DJvodka

    Well-known member
  • Mar 31, 2009
    3,375
    292
    83
    A land like no other
    JSP walin ehema gemak denna barida,

    samahara wita , jomala wage install karagana scripts athi:baffled:

    Ne machan JSP wedakaranna webhosting provider support karanna ona(glassfish or tomcat). boho durata free webhosting waladi oka support karanne nehe. Anika JSP walata hondata Java EE platform eka puluwan wenna ona. Karadara godai. loku project ekakata nam awlak ne. PHP walin godak durata wede lesi. Mage Php experience eka nil.:( Joomla use karanawanam ekenuth puluwan. Again, Mage joomla experience eka nil.: Now the only help i can give you is a big ;
    B
    U
    M
    P