Raised This Month: $ Target: $400
 0% 

How to read text from URL


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 12-12-2014 , 17:18   How to read text from URL
Reply With Quote #1

How to read text from a web site, like this http://www.mobio.bg/code/checkcode.php?servID=$servID&code=$code
KiLLeR. is offline
colossus
Member
Join Date: Sep 2013
Old 12-12-2014 , 18:01   Re: How to read text from URL
Reply With Quote #2

show_motd(index, "http://www.mobio.bg/code/checkcode.php?servID=$servID&code=$code")??

your php... call GET "code" and "service"
colossus is offline
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 12-12-2014 , 18:11   Re: How to read text from URL
Reply With Quote #3

No, no, i don't want to show in motd screen. I want to save in string. I'll give you an example for my needs:
PHP Code:
public check()
{    
    new 
text[] = "http://www.mobio.bg/code/checkcode.php?servID=$servID&code=$code// here i don't know how to get text from the URL
    
    
new bool:rr
    
    
if(equal(text"..."))
        
rr true;
    else
        
rr false;
        
    return 
rr;


Last edited by KiLLeR.; 12-12-2014 at 18:13.
KiLLeR. is offline
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 12-12-2014 , 18:21   Re: How to read text from URL
Reply With Quote #4

delete..

Last edited by KiLLeR.; 12-12-2014 at 18:47.
KiLLeR. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-12-2014 , 19:14   Re: How to read text from URL
Reply With Quote #5

To get the output of the PHP script, you need to use sockets.
__________________
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode