tags:

views:

84

answers:

3

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
+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
+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
Yeh this is very easy to just do a post with content type application/xml.
AaronLS