开发者

Can i get variable from php to my windows form?

开发者 https://www.devze.com 2023-03-09 21:21 出处:网络
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.

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

精彩评论

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