logo       

Re: ming simply doesnt work...: msg#00040

web.ming.general

Subject: Re: ming simply doesnt work...

i sent headers before any output and it didnt worked. also i have checked
mime.types file in apache config - there is "application/x-shockwave-flash swf"
defined. as i mentioned before, ming was precompiled in php (phpinfo said
--with-ming=/usr), and it was displaying "flash-that-looks-like-piece-of-crap".
i saw that length of that crap depends on code complexity. but nothing happend
until i had loaded php_ming.so module. then i saw a nice flash animation
cycling in my browser....

next checkpoint - ming 0.3a !! :)

tnx guys!

Raffaele Sena <raff@xxxxxxxxxxxx> wrote :

> What you are getting is actually the proof that Ming on your server
> works very fine!
>
> The "junk" that you see is the Flash movie that you just generated (FWS
> is the "magic" for Flash SWF files) and guess what, the bigger what you
> are trying to generate is and the longer the "junk" you see.
>
> What you are missing is the information that what you are trying to
> send to the client is a SWF file.
>
> Make sure you add the following line to your php script:
>
> header('Content-type: application/x-shockwave-flash');
>
> BEFORE you output the movie.
>
> -- Raffaele
>
>
> On Monday, December 29, 2003, at 05:07 PM, zextra@xxxxxxxxxx>
> wrote:
>
> > Zextra@xxxxxxxxxx
> wrote :
> >
> >> hi everyone!
> >>
> >> as subject says, ming doesnt work on my server. i have tried
> >> compiling it a
> >> loooot of times and on few web server (and linux distros, too) -
> >> nothing
> >> helped.
> >>
> >> last time i have tried to make it work was few days ago. i was
> >> recompiling php
> >> 4.3.4 under gentoo linux. compilation went just fine, ming compiled
> >> with few
> >> warnings...
> >> when i execute this script (can be found under swftext function
> >> examples):
> >>
> >> !!
> >>
> >> all i get is
> >>
> >> FWS}?ÒðÊ Cÿÿÿ _serif?¨ÓÀ? ?ÿÿÿ ?»À]PHP generates
> >> Flash with
> >> Ming!!?@
> >>
> >> (i noticed that size of this junk depends of script itself)
> >> when i execute "php " from my shell, i get following
> >> error:
> >>
> >> Fatal error: Cannot instantiate non-existent class: swffont in
> >> /....../index.php on line 2
> >>
> >> i have tried getting ming through CVS, but compilation fails.
> >> any clues?!
> >>
> >> btw, i was messing with cvs ming, and somewhere i have seen that
> >> there are some
> >> functions that should enable action sounds (eg. button clicks hovers
> >> etc. with
> >> custom sound) -- is that true?
> >>
> >> pls help!!
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> ming-fun mailing list
> >> ming-fun@xxxxxxxxxx
> >> http://www.opaque.net/mailman/listinfo/ming-fun
> >
> > ah... i've forgot to say... i am using gcc 3.3.2, apache 1.3.29
> > i somebody think it could work, send me compiled 0.2a ming binary and
> > ming.h (or whaterver it needs to work fine)
> >
> >
> >
> >
> > _______________________________________________
> > ming-fun mailing list
> > ming-fun@xxxxxxxxxx
> > http://www.opaque.net/mailman/listinfo/ming-fun


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise