If it worked on another server, I don't see why it wouldn't work on LP. Did you read this thread? http://www.lunarforums.com/forum/index.php?topic=20444.0
Unfortunately, I'm not that good with PHP as others here, but you might want to attach your file(s) so people can take a look at it.
When in "Preview" mode when making a post, click on "Additional Options." You may have to change the extension to ".txt" first, as there are only certain extensions that this forum will accept for attachments.
Attach all the files that are needed. I might not be able to work on this today, but I'll take a look at trying to get it to work on my server tomorrow, to see if I can help you with this.