Monte Goulding a écrit :
>
> > Probably yes, but i'm not sure to understand what you are asking
> > about. What do
> > you mean, exactly ?
> >
> To use MetaTalk in web pages like PHP or ASP?
>
It's possible even if i don't use, myself, this way to parse mc data to the web
(see the list archive if needed to see my prefered method).
An usable way to get this process running could be (not tested) :
Store the html + mc tags file into a pagetoparse.mt file.
Store the following script in your parser.mt script or mc standalone.
on mcparser pagetoparse
repeat until "<¶--" is not in pagetoparse
put offset("<¶--",pagetoparse) into deb
if char (deb+4) to -1+offset("-->",pagetoparse) of pagetoparse is "todo1" then
todo1
else if char (deb+4) to -1+offset("-->",pagetoparse) of pagetoparse is "todo2"
then todo2
else if char (deb+4) to -1+offset("-->",pagetoparse) of pagetoparse is "todo3"
then todo3
end repeat
return pagetoparse
end mcparser
Change your httpd prefs to have .mt file parsed by the mc parser.
Don't forget to replace each initial tag "<¶--todo1-->", "<¶--todo2-->" with the
todo1, todo2 returned values ;-)
This will work with WebStar, Apache, or MSIIS4 even if, it's, for me, best ways
to get the same result :
1. the Andu's custom mchttpd stack that enabled this kind of "tags parsing" from
within his http deamon.
2. the use of a real long process running mc-based web/vpn applications server,
able to get data from any parsing systems sources, in using appleevents, sockets
or ms pipes to communicate trough MacPerl or PHP (or Perl, Python, ASP,...) with
MC apps/databases or SQL databases on the same or different servers boxes.
Regards, Pierre Sahores
WEB & VPN applications & databases servers
Inspection académique de Seine-Saint-Denis
Qualifier & produire l'avantage compétitif
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.