Download string
Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
1 post
Page 1 of 1
What?
This program will download a file (.txt or .php) from a FTP Server and put its content to use!
Why?
So you can check for updates, find peoples IP, get strings... Really anything that can be written down...
How?
Over the internet... You just need an FTP Server...
Just Google "Free FTP hosting" as outside links aren't allowed.
I want to make it check for updates!!!
You will need upload a .txt file to your FTP Server with the latest version written inside.
Example:
A way you can do this is to get the IP's of the people that you want to use your program.
Create a .php file with the following code and host it on your server.
Add 1 WebClient to your form.
Add this code to your project load page and it will check for updates. Alternatively you can add it to a button.
If you would like to see some other features, PM me.
This program will download a file (.txt or .php) from a FTP Server and put its content to use!
Why?
So you can check for updates, find peoples IP, get strings... Really anything that can be written down...
How?
Over the internet... You just need an FTP Server...
Just Google "Free FTP hosting" as outside links aren't allowed.
I want to make it check for updates!!!
You will need upload a .txt file to your FTP Server with the latest version written inside.
Example:
Code: Select all
I want only certain people to use my program!!!v1.0
A way you can do this is to get the IP's of the people that you want to use your program.
Create a .php file with the following code and host it on your server.
Code: Select all
What do I do with Visual Basic???<?php echo $_SERVER['REMOTE_ADDR']; ?>
Add 1 WebClient to your form.
Add this code to your project load page and it will check for updates. Alternatively you can add it to a button.
Code: Select all
Add this code to your project load page and it will only let people with certain IP's use the program.
If Not System.Text.Encoding.ASCII.GetString((WebClient1.DownloadData("http://yourfileurl.com/version.txt"))) = "v1.0" Then
MsgBox("An update is availible")
End If
Code: Select all
If you need any help, just post below ;) Dim UserIP As String = System.Text.Encoding.ASCII.GetString((WebClient1.DownloadData("http://yourfileurl.com/ip.php")))
If UserIP = "IP1" Then
ElseIf UserIP = "IP2" Then
ElseIf UserIP = "IP3" Then
ElseIf UserIP = "IP4" Then
Else
MsgBox("Your IP is not authorized to use this program" & vbNewLine & "The program will now close.", MsgBoxStyle.Exclamation, "Not Authorized!")
End
End If
If you would like to see some other features, PM me.
1 post
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023