开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜