开发者

Adding a line to a PHP File

开发者 https://www.devze.com 2023-02-28 20:16 出处:网络
I want to add a line t开发者_运维百科o a certain php file file through a void in C#. How exactly could I do that?

I want to add a line t开发者_运维百科o a certain php file file through a void in C#.

How exactly could I do that?

------Edit------

The PHP file is on my Web Server, So I do have the details to connect to the website.


Google your question before you ask it. We are not going to write the code for you.

For information on how to work with files in c# , go to http://www.codeguru.com/csharp/csharp/cs_syntax/anandctutorials/article.php/c5861


If you need write something to PHP file use this simple code:

File.WriteAllText(Server.MapPath("~/your_php_file.php"), "echo \"from C#\"");

Maybe it will help you but your question is unclear

0

精彩评论

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