note 89516 added to function.readfile
| From: | jordan314 at osu1 dot php dot net | Date: | Thu, 12 Mar 2009 04:01:40 +0000 |
| Subject: | note 89516 added to function.readfile | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-151754@lists.php.net to get a copy of this message | ||
This mp3 serving script works on mac and PC, including IE, but for some reason doesn't work on
the iPhone. The message I get in the quicktime player is "The movie could not be opened."
-------
header("Content-Disposition: filename=" . urlencode($file));
header("Content-Type: audio/mpeg");
header("Content-Description: File Transfer");
header("Content-Length: " . filesize($file));
flush();
$fp = fopen($file, "r");
while (!feof($fp))
{
echo fread($fp, 65536);
flush();
}
fclose($fp);
exit();
----
Server IP: 209.41.74.194
Probable Submitter: 68.77.18.205
----
Manual Page -- http://www.php.net/manual/en/function.readfile.php
Edit -- https://master.php.net/note/edit/89516
Del: integrated -- https://master.php.net/note/delete/89516/integrated
Del: useless -- https://master.php.net/note/delete/89516/useless
Del: bad code -- https://master.php.net/note/delete/89516/bad+code
Del: spam -- https://master.php.net/note/delete/89516/spam
Del: non-english -- https://master.php.net/note/delete/89516/non-english
Del: in docs -- https://master.php.net/note/delete/89516/in+docs
Del: other reasons-- https://master.php.net/note/delete/89516
Reject -- https://master.php.net/note/reject/89516
Search -- https://master.php.net/manage/user-notes.php