Hi, I want to play realaudio files without showing their location in my site. That means I have to use php header() function to change the MIME type of the page to "audio/x-pn-realaudio" which looks to me the correct MIME to paly real files.
Unfortunately, I did not success in playing those files. I need some help. I will show down what I did: [code] $file = // name of the file $path = // path to the name of the file header("Content-Disposition: attachment; filename=$file"); header("Content-Length: " . filesize($path)); header("Content-Type: audio/x-pn-realaudio"); readfile("$path"); [/code] any help would be highly appreciated. Regards, Hamid -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php