I want a DLL created using c# .net VS 2005 that contains a callable version of PHP (PHP source for windows is available from [url removed, login to view]). I want two methids exposed as follows
1) int RunPHPScript(string ScriptFileName) - this will take one parameter (the name of a correctly formed PHP script file) it will run the php script as if it were a normal windows command writing any output to stdout and stderr (there is no input required!) when complete return an error code 0 if non encountered.
2) int RunPHPCode(string PHPScript) - this is essentially the same as the function above except that the php code executed is not in a file but contained in the passed variable (PHPScript)
I want PHP the compiled PHP DLL to be useable from any C# .net project and it must have the same behaviour as normal lastest version of PHP - meaning it must read [url removed, login to view] [url removed, login to view] etc as a normal invokation from the command line or the ISAPI filter would do.
Please contact me if you need further info