Save file on host? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Save file on host? (
/showthread.php?tid=271858)
Save file on host? -
dud - 26.07.2011
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 ?
Re: Save file on host? -
cessil - 26.07.2011
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
Re: Save file on host? - Guest3598475934857938411 - 26.07.2011
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.
Re: Save file on host? -
PGTips - 26.07.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
Re: Save file on host? -
linuxthefish - 26.07.2011
if you set something on on the other end, i'm sure you could do something with HTTP_POST.
Re: Save file on host? -
PGTips - 26.07.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