# Help me load mp3 through php

**URL:** <https://forum.kirupa.com/t/help-me-load-mp3-through-php/180895>\
**Category:** Uncategorized\
**Created:** [March 4, 2006, 10:56am UTC](https://forum.kirupa.com/t/help-me-load-mp3-through-php/180895 "2006-03-04T10:56:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Napoly](https://avatars.discourse-cdn.com/v4/letter/n/a9adbd/32.png) [@Napoly](https://forum.kirupa.com/u/Napoly)\
**Post date:** [March 4, 2006, 10:56am UTC](https://forum.kirupa.com/t/help-me-load-mp3-through-php/180895/1 "2006-03-04T10:56:53Z")

</div>

I have this php code to make the browser “save as” my mp3.

```php
<?php
$location = $_SERVER['DOCUMENT_ROOT']."/Music_download/banana_phone.mp3";
$basename = basename($location);
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=$basename");
@readfile($location);
?>

```

…but I donno how to use this code inside flash…  
on (release) {  
getURL("…/Music\_download/banana\_phone.mp3");  
}  
//this code just trying to open the file in quicktime player… (it has nothing to do with php code now)

thnx in advance
