Why does this: $img="image.jpg"; 10 $fp = fopen($img,"rb"); 11 $i = fread($fp,filesize($img)); 12 $s = new SWFBitmap($i);
Produce this: Fatal error: Sorry, can't tell what type of file ÿØÿà is in C:\Inetpub\wwwroot\dawndusk\serlient\test.php on line 12 When I print $i; I get the correct binary jpg text. I am taking the code from php.net and it did work before I switched to 4.1.1 Any help is appreciated!