Is there anyway to call PHP script from a .Net application and pass in some parameters?
+1
A:
If you have the PHP runtime installed you can still launch a new process to execute the script.
Have a look at the Process class.
Fabian Vilers
2009-04-07 07:15:32
+3
A:
You can do it through a command line call
php your-file.php parameter1 parameter2
The parameters are available in the $_SERVER['argv']
variable.
soulmerge
2009-04-07 07:16:36
+3
A:
I've got interop with .NET and PHP using web services. You can output XML from both, which means you can call each way.
Sohnee
2009-04-07 07:18:29
Yeh this is very easy to just do a post with content type application/xml.
AaronLS
2009-04-07 07:28:11