PHP Scripting Forums » General Web Development Forum

Internet Temp Folder

(12 posts)
  • Started 9 months ago by prisharma
  • Latest reply from prisharma
Great offers not only for geeks!
Your Ad Here

  1. User has not uploaded an avatar

    prisharma
    Member

    Hi Olaf,

    I am working with some ring tone site... and i am facing problem....

    When user clik on ringtone then .mp3 file download at Internet temp folder and user can get easily... and then it not need to purchase...

    I know all the file download in Internet Temp Folder....

    But can you guide me In php can i expair or damage .mp3 file after some time from 'Internet Temp Folder' ...

    If it is possible with PHP Please guide me....

    Many Thanks

    Posted 9 months ago #
  2. Hi,

    I think you need a media streamer, not sure if this is possible with php (windows for sure).

    Posted 9 months ago #
  3. User has not uploaded an avatar

    prisharma
    Member

    Hi,

    Thanks for reply...

    but i think it is possible with php... by 'header' function but i am not sure...

    And about 'Media Streamer'... I am using file which store at server...

    Posted 9 months ago #
  4. than you need to use some "no cache" header... but this is not 100% safe (people can still safe the data directly via the network card)

    Posted 9 months ago #
  5. ... and check th links in this google search result.

    Posted 9 months ago #
  6. User has not uploaded an avatar

    prisharma
    Member

    Hi

    Yes I want to use 'no cache' but i not understand ho it use properly... can you give me code... because in this way we can secure my data because 100% user not know about it so we can use it with 10-15% risk...

    If you have any other gud idea about it please guide me...

    Many Thanks

    Posted 9 months ago #
  7. do you ever used Google

    check http://support.microsoft.com/kb/234067

    Posted 9 months ago #
  8. User has not uploaded an avatar

    prisharma
    Member

    Hi

    I am using below code in php, but i m not getting any success, can you modify below code... plz

    header('HTTP/1.1 200 OK');
    header("Content-Type: audio/mp3");
    header("Content-Length: " . (string)(filesize($fileHandle)) );
    header("Content-Transfer-Encoding: Binary");
    header('Content-Disposition: attachment; filename="music.mp3"' );
    header("Expires: " . date("D, j M Y H:i:s", time() + (86400 * 30)) . " UTC");

    Thanks

    Posted 9 months ago #
  9. Hi,

    Can't say which is the right working solution, sending the right headers is a complex thing not only to prevent caching. As you can read on this forum it's also difficult to create a download script that works for every browser

    My advice, check ALL comments on this page: www.php.net/header and start testing

    Posted 9 months ago #
  10. User has not uploaded an avatar

    prisharma
    Member

    HI

    as you say "difficult to create a download script that works for every browser" It mean we can't use this method for this problem... and there is no one solution...

    But I think there is no one solution... but I am confue bcz in previous month i see a site where .mp3 is damage...I want to know simply that it is possible with php or not .... ?? If you know the best way about this functionlity please guide me...

    Many Thanks

    Posted 9 months ago #

RSS feed for this topic

Reply »

You must log in to post.