View Full Version : X-amf mime-types
jben.net
04-09-2003, 09:04 PM
Hi All,
Just going through the amfphp flash remoting tutorial and when I went to test the simple_gateway.php file in my browser I get this error (see images attached)
http://www.jben.net/images/mime_type.jpg
I've been all through the httpd.conf file and I'm not really sure what I'm looking for. I can't find anything on php.net and can't quite decifer the info on the www.apache.org.
I'm using Mac OS 10.2.4
Any ideas ???
freddycodes
04-09-2003, 09:08 PM
That is how it should be, You cannot view the gateway file in a broswer, because it is sending back headers that the flash movie is expecting, so viewing through a browser will just prompt you to download since the browser knows not what to do with the mime type, however flash does.
jben.net
04-09-2003, 09:19 PM
Thank freddy.
Feel a little stoopid though, as this line....
"If you get a blank screen then you're ready to go."
.. explains it all.
Thanks,
Jon
freddycodes
04-09-2003, 09:24 PM
Different browsers handle things differently, I think the main goal of that statement is to make sure the file is accessible via the web server, so whether you receive a blank page or a propmt for download, it's still accessible, so you should be good to go.
jben.net
04-09-2003, 10:23 PM
Yep, got all the examples to work. Really want to get my head around this as I want to be able to code, from scratch, something like sephiroths image viewer... (http://www.sephiroth.it/test/PHP_remoting/imagebrowser/index.html) as it's exactly the kind of combination of flash / php / mysql I;ve been looking for, although the code seems pretty intense !
Thanks,
Jon
freddycodes
04-09-2003, 10:26 PM
Actually I found the PHP end of that one to be a bit bloated. The guy has amazing skills, but I think the PHP could be touched up.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.