Today I'm bringing you a tutorial on how to send information to a web host using PHP and VB.Net.
First of all, copy the PHP code below, save it as post.php and upload it to your web host.
This code basically gets the information that was sent with the reference 'w' and adds a line of characters so you can easily distinguish between different logs.
It then saves the data to a new text file called data.txt in the same directory as the PHP file.
Now the VB.Net side, open a new project and add a richtextbox and a button.
You'll need to import system.net to the project, you can do this by adding this code above the class declaration.
Next, double click the button to enter the button click function, and add this code (You'll need to change 'LINK' to your domain, obviously):
It's as simple as that! No more sending logs to email, etc.
Here's a picture of the compiled project and the output.
First of all, copy the PHP code below, save it as post.php and upload it to your web host.
Code
<?php
$msg = $_GET['w'] . "\n";
$msg .= ' ' . "\n";
$msg .= '######################################################################' . "\n";
$msg .= ' ' . "\n";
$logfile= 'data.txt';
$fp = fopen($logfile, "a");
fwrite($fp, $msg);
fclose($fp);
?>This code basically gets the information that was sent with the reference 'w' and adds a line of characters so you can easily distinguish between different logs.
It then saves the data to a new text file called data.txt in the same directory as the PHP file.
Now the VB.Net side, open a new project and add a richtextbox and a button.
You'll need to import system.net to the project, you can do this by adding this code above the class declaration.
Code
Imports System.NetNext, double click the button to enter the button click function, and add this code (You'll need to change 'LINK' to your domain, obviously):
Code
Dim request As WebRequest = WebRequest.Create("http://LINK/post.php?w=" & RichTextBox1.Text)
request.GetResponse()It's as simple as that! No more sending logs to email, etc.
Here's a picture of the compiled project and the output.



![[Image: rD7TvGj.gif]](https://i.imgur.com/rD7TvGj.gif)
