Adding a line to a PHP File
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
加载中,请稍侯......
精彩评论