fwrite to a remote file - 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)
+--- Thread: fwrite to a remote file (
/showthread.php?tid=430148)
fwrite to a remote file -
zDevon - 12.04.2013
Say I'm running a samp server off of my home computer, and have log files located on my web server. I'm curious if it would it be somehow possible to establish a connection between the samp server and that web server and append the fwrite function to write to a remote file located there. Ideas?
Re: fwrite to a remote file -
Slice - 12.04.2013
Use the HTTP function to invoke a PHP script (or similar) to read/write. You can't do it with fwrite because it's not supported, also it would freeze the server until it was done reading/writing.