C#控制台应用程序如何从PHP读取输入 [英] How does C# console application read input from PHP

查看:109
本文介绍了C#控制台应用程序如何从PHP读取输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Windows 8.1,64位操作系统,PHP版本5.6.19和Visual Studio 2015.我希望我的C#控制台应用程序从PhP读取输入。意味着我将在PhP中插入输入,我的C#控制台应用程序将从我的PhP文件中读取该输入。我怎么能这样做?



我的尝试:



我没有找到解决问题的任何线索

I am using windows 8.1, 64bit OS, PHP Version 5.6.19 and Visual Studio 2015. I want my C# console application to read input from PhP. Means i will insert input in PhP and my C# console application will read that input from my PhP file. How can i do that?

What I have tried:

I haven't found any clue to solve the issue

推荐答案

您可以使用 WebClient 连接到任何网页资源: WebClient类(System.Net) [ ^ ]



http://www.dotnetperls.com / webclient [ ^ ]
You can use WebClient to connect to any web resource : WebClient Class (System.Net)[^]

http://www.dotnetperls.com/webclient[^]


这篇关于C#控制台应用程序如何从PHP读取输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆