Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Visual Basic Programming › Help (Get text from .php website) [solved]

Help (Get text from .php website) [solved]

Posts 1–15 of 20 · Page 1 of 2
BA
BassSR
Help (Get text from .php website) [solved]
Im trying to make a program that grabs the TRUE or FALSE fom a site and then tells my program which it is and the program will either have a text box or like a different picture.
heres what i have so far.
http://i.imgur.com/qYwW5.png
its just the webbrowser loading the PHP page and showing the text, but i want the program to know which it says (true or false) and then show a certain text box or show a certain picture
thanks
#1 · 14y ago
Jason
Jason
[highlight=vb.net]
Dim useable As Boolean = False
Using wClient As New Net.WebClient()
useable = wClient.DownloadString("http:/rwebsite").ToLower().Contains("true")
End Using
[/highlight]
#2 · 14y ago
BA
BassSR
Quote Originally Posted by Jason View Post
[highlight=vb.net]
Dim useable As Boolean = False
Using wClient As New Net.WebClient()
useable = wClient.DownloadString("http:/rwebsite").ToLower().Contains("true")
End Using
[/highlight]
Wow thanks, ill try some thinks


@Jason
how do i use it, its abit confusing
#3 · edited 14y ago · 14y ago
Jason
Jason
Quote Originally Posted by BassSR View Post

Wow thanks, ill try some thinks


@Jason
how do i use it, its abit confusing
What's confusing? You put the php link in where i put "http:/rwebsite", the webclient downloads the pagesource from there, checks whether it contains "true". the "useable" variable now tells you whether the page said true or false

[highlight=vb.net]
Dim useable As Boolean = False
Using wClient As New Net.WebClient()
useable = wClient.DownloadString("http:/rwebsite").ToLower().Contains("true")
End Using
If Not useable Then 'the pagesource didn't contain "true"
MessageBox.Show("This is unuseable")
Else
MessageBox.Show("This is useable!")
End if
[/highlight]
#4 · 14y ago
BA
BassSR
Quote Originally Posted by Jason View Post


What's confusing? You put the php link in where i put "http:/rwebsite", the webclient downloads the pagesource from there, checks whether it contains "true". the "useable" variable now tells you whether the page said true or false

[highlight=vb.net]
Dim useable As Boolean = False
Using wClient As New Net.WebClient()
useable = wClient.DownloadString("http:/rwebsite").ToLower().Contains("true")
End Using
If Not useable Then 'the pagesource didn't contain "true"
MessageBox.Show("This is unuseable")
Else
MessageBox.Show("This is useable!")
End if
[/highlight]
So you doing like Uni now?
is it for coding still or is that jsut a hobby?
you knew me as apex of ap exh aks :3

your a fucking boss VB coder i swear
Thanks man
#5 · 14y ago
Jason
Jason
Yeah I am doing Uni.

Thread marked solved.
#6 · 14y ago
BA
BassSR
Nice, grats on it
ok when i do it, i want to mkae the images visiable and invisable
whic i did like this:
Code:
  If Not useable Then 'the pagesource didn't contain "true"
            PictureBox1.Visible = True & PictureBox2.Visible = False & PictureBox3.Visible = False
        Else
            PictureBox2.Visible = True & PictureBox1.Visible = False & PictureBox3.Visible = False
        End If
dosnt seem to work tho
#7 · 14y ago
Jason
Jason
Quote Originally Posted by BassSR View Post
Nice, grats on it
ok when i do it, i want to mkae the images visiable and invisable
whic i did like this:
Code:
  If Not useable Then 'the pagesource didn't contain "true"
            PictureBox1.Visible = True & PictureBox2.Visible = False & PictureBox3.Visible = False
        Else
            PictureBox2.Visible = True & PictureBox1.Visible = False & PictureBox3.Visible = False
        End If
dosnt seem to work tho
You can't just link lines together like that

[highlight=vb.net]
PictureBox1.Visible = useable
PictureBox2.Visible = useable
PictureBox3.Visible = useable
[/highlight]
#8 · 14y ago
BA
BassSR
Code:
  Dim useable As Boolean = False
        Using wClient As New Net.WebClient()
            useable = wClient.DownloadString("************").ToLower().Contains("FALSE")
        End Using
        If Not useable Then 'the pagesource didn't contain "true"
            PictureBox1.Visible = True
            PictureBox2.Visible = False
        Else
            PictureBox1.Visible = False
            PictureBox2.Visible = True
        End If
dosnt work.
wont change images on change of the text on the site
#9 · edited 14y ago · 14y ago
Jason
Jason
Outside link removed. Next time you post one I have to report it.

And the reason it's not working is because that page is broken:

[highlight=php]
Parse error: syntax error, unexpected $end, expecting T_VARIABLE or T_DOLLAR_OPEN_CURLY_BRACES or T_CURLY_OPEN in ***********.php on line 4
[/highlight]

AND BECAUSE you converted the string "ToLower()", then checked if it contained "FALSE" which is in uppercase lol, of course that's going to fail.
#10 · edited 14y ago · 14y ago
Hassan
Hassan
Quote Originally Posted by BassSR View Post
Code:
  Dim useable As Boolean = False
        Using wClient As New Net.WebClient()
            useable = wClient.DownloadString("************").ToLower().Contains("FALSE")
        End Using
        If Not useable Then 'the pagesource didn't contain "true"
            PictureBox1.Visible = True
            PictureBox2.Visible = False
        Else
            PictureBox1.Visible = False
            PictureBox2.Visible = True
        End If
dosnt work.
wont change images on change of the text on the site
Because the parsed result of your php doesn't contains the string 'FALSE'.
#11 · 14y ago
BA
BassSR
the only words there are true or false
#12 · 14y ago
QW
qwerty01
Quote Originally Posted by BassSR View Post
...
wClient.DownloadString("************").ToLower().Contains("FALSE")
...
I bolded the parts you should pay attention to.
#13 · 14y ago
Jason
Jason
Quote Originally Posted by BassSR View Post
the only words there are true or false
Not when I visited the link: There was a PHP error. Try this and see what happens

[highlight=vb.net]
Using wClient As New Net.WebClient()
MessageBox.Show(wClient.DownloadString("********** **").ToLower())
End Using
[/highlight]
#14 · 14y ago
BA
BassSR
i screwed up but the only text there is either true or false
#15 · 14y ago
Posts 1–15 of 20 · Page 1 of 2

Post a Reply

Similar Threads

  • [help]read text from an online .txt[Solved]By trevor206 in Visual Basic Programming
    10Last post 15y ago
  • Get text from webbrowser... [solved]By AceKill3r in Visual Basic Programming
    3Last post 15y ago
  • [HELP]Get your OS Version, Vb2008[Solved]By hitmen69 in Visual Basic Programming
    11Last post 15y ago
  • [HELP]Get image from resourcesBy ♪~ ᕕ(ᐛ)ᕗ in Visual Basic Programming
    2Last post 15y ago
  • [SOLVED]is there anyone someone could help me get unbanned from mw2 multiplayerBy Devin7713 in Call of Duty Modern Warfare 2 Help
    8Last post 16y ago

Tags for this Thread

None