Re: include or fread a binary file?

From: Date: Wed, 28 Nov 2001 23:05:48 +0000
Subject: Re: include or fread a binary file?
Groups: php.general 
Request: Send a blank email to php-general+get-75961@lists.php.net to get a copy of this message
Hello Bryant, Thursday, November 29, 2001, 12:56:07 AM, you've written: BB> I have a flash file that I need to embed in an iframe on a page. I BB> dynamically get the path to the file from a MySQL database. I've BB> tried to include the file and use fopen/fread to execute the BB> file, but I only get binary code back, which makes sense actually. BB> What's the best way to go about this? Maybe something like: header("Content-type: image/swf-flash"); (if I am not mistaken) Or just <embed src="filename.swf"></embed> would be easier? :) ------------------------------------------------ Ivan 'Faeton aka xetrix' Danishevsky ICQ(240266) faeton@xemichat.com www.xemichat.com

« previous php.general (#75961) next »