Posts: 199
Threads: 57
Joined: Dec 2010
Reputation:
0
stock Save(str[])
{
new File:log = fopen("http:\\133.58.22.165\Logs\File.txt", io_append);
format(str, 256, "%s\r\n", str);
fwrite(log, str);
fclose(log);
return 1;
}
i want to save File.txt to other host not in scriptfiles
can ?
Posts: 1,363
Threads: 14
Joined: Apr 2009
Reputation:
0
no, you can only use fopen in files that are in the script directories, to write on another server you'll probably need a plugin
Guest3598475934857938411
Unregistered
Sorry for security reasons SA-MP servers can't copy files to other folders expect script files, you will need a special plugin that could probably break your hosting TOS.
Posts: 148
Threads: 5
Joined: Jun 2011
If you mean an exrenal website source its possible with coding and a plugin i cant remember what its called ill post here when i find it this means a website so be warned you need a site to do this with databases
Posts: 2,857
Threads: 62
Joined: Dec 2010
Reputation:
0
if you set something on on the other end, i'm sure you could do something with HTTP_POST.
Posts: 148
Threads: 5
Joined: Jun 2011
i cant find it here is somthing to do with it though i think
https://sampforum.blast.hk/showthread.php?tid=172678
sorry i cant look into it furtther it just i have to on in 5 mins