Please see my recent answer:
how to call c# from php[
^].
[EDIT]
I answered only because I though it was a different inquirer. My mistake.
Re-posting questions is bad; and it cannot help you. If you are not satisfied with the answer, you can comment on existing answer or a comment, use "Improve question", etc.
—SA