Can i get variable from php to my windows form?
Is it possible to get variable fro开发者_StackOverflow中文版m php page to use it in my windows form?
Instead of emitting HTML with your .PHP file, emit a single value.
<?php
echo $MyVar;
?>
Then, with your application, fire off an HTTPRequest to the PHP page. Then, convert the string in the HTTP Response to the data type of the variable.
Instead of a variable you can write an xml as an page output and that can be used on windows form using HttpWebRequest and HttpWebResponse classes.
精彩评论