AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to read text from URL (https://forums.alliedmods.net/showthread.php?t=252973)

KiLLeR. 12-12-2014 17:18

How to read text from URL
 
How to read text from a web site, like this http://www.mobio.bg/code/checkcode.php?servID=$servID&code=$code

colossus 12-12-2014 18:01

Re: How to read text from URL
 
show_motd(index, "http://www.mobio.bg/code/checkcode.php?servID=$servID&code=$code")??

your php... call GET "code" and "service"

KiLLeR. 12-12-2014 18:11

Re: How to read text from URL
 
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;



KiLLeR. 12-12-2014 18:21

Re: How to read text from URL
 
delete..

fysiks 12-12-2014 19:14

Re: How to read text from URL
 
To get the output of the PHP script, you need to use sockets.


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

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