SA-MP Forums Archive
Active Server Log - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Active Server Log (/showthread.php?tid=73438)



Active Server Log - tom_jonez - 15.04.2009

I'm working on a PHP website control panel for my server. I am having trouble updating the server log though apparently because I am not able to use ftp to go into the site and get the contents of the server_log.txt while the server is running on it, too. I get the error:
Код:
Warning: ftp_get() [function.ftp-get]: can't access file. in C:\Inetpub\wwwroot\lvrcr\ftp.php on line 23
It doesn't even say the file where it should: can't access file [Filename]. Where Filename is, the filename should be which is server_log.txt. But it doesn't even say it. When I turn the server off, it does it easily. So I'd like to know if there's a way for me to make it so my server log can be accessible while the sa-mp server is on or a plugin/filterscript that recreates the server log file and puts it into a different file. The only problem with the plugin/filterscript part is that I can't read the server_log.txt file I don't think because it isn't in the scriptfiles folder. Can I please get some help. I'd really appreciate it.


Re: Active Server Log - tom_jonez - 15.04.2009

um. hm. anyone?


Re: Active Server Log - ICECOLDKILLAK8 - 15.04.2009

I dont think you can access it whilst the server is running at all, So i would say just give up


Re: Active Server Log - tom_jonez - 16.04.2009

is it possible to make a plugin that can access it and and then rewrite it into a seperate file?


Re: Active Server Log - RoBo - 16.04.2009

You can download the server log while the server is running!


Re: Active Server Log - tom_jonez - 16.04.2009

Quote:
Originally Posted by RoBo
You can download the server log while the server is running!
not with php ftp.