Save file on host?
#1

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 ?
Reply
#2

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
Reply
#3

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.
Reply
#4

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
Reply
#5

if you set something on on the other end, i'm sure you could do something with HTTP_POST.
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)