On 08/12/05, Rockefellaz Fellow <rockefellaz(a)gmail.com> wrote:
if i use fopen, many character will shown strangely,
and the path still in
mediawiki directory....
On what are you using fopen? MediaWiki content is stored in a
database, not a filesystem, so if you want to access the data you'll
need to either access the database directly (and hack a way of calling
the "parser") or make a HTTP request inside your program (using libwww
or something, I guess) to a pre-rendered version.
The best form for this is not the printable version but the completely
skinless version, available using "action=render"; e.g.
http://en.wikipedia.org/w/index.php?title=User:IMSoP&action=render
[The only disadvantage seems to be that it renders internal links as
full, rather than relative, URLs, which maybe isn't what you want;
maybe a hacked LocalSettings.php could give them a fake prefix?]
--
Rowan Collins BSc
[IMSoP]