PDA

View Full Version : fopen external URL - Error: signal: 0xb {11}



igstyga
7th June 2020, 16:06
Hello there!

I'm trying to make a GET request to a URL from a .gsc file in Call of Duty 1.1 server.
From what I know, there are no commands which are directly intended for that use, so I tried with fopen.
However, I'm getting the error said in the title when executing the fopen function - Error: signal: 0xb {11}

Developer mode is on, that's the only output that shows.

Here's the piece of code that does the request.



abc = fopen("http://mywebsite.com/getrequest.php", "r");
fclose(abc);


I tried using the same code in PHP and it worked without issue.

Any ideas what's wrong, or what other function can I use?

Thanks, regards.

kung foo man
8th June 2020, 13:50
system() with wget should be the easiest route, then read the result via fopen

igstyga
8th June 2020, 18:41
system() with wget should be the easiest route, then read the result via fopen

I need libcod for system, right?

maxdamage99
9th June 2020, 05:19
I wrote a post about "execute" in CoD2, but it's not CoD2 :)
I do not know how things are with libcod in CoD1, but you can always build an external loop in .php and use files as input/output (fwrite, fread), even if in CoD1 "system()" not exists

kung foo man
10th June 2020, 08:07
I need libcod for system, right?

Yea, alternatively, you could also use B3 for some logic and communicate via cvar's [1]. But the easiest/"unhackiest" route is to use libcod

[1] https://killtube.org/showthread.php?1259-Tutorial-B3-Simple-and-Easy-Command-Adding!