• Steam ID http.Post log
    5 replies, posted
Hi Facepunch, im making a script to collect the steam id's of people joinin my server to a website, so i created a simple http.Post script doing it, and i log it in a txt file, and it works the only problem is that it only saves 1 persons steam ID at a team it doesnt save a list, it just keeps resetting the txt file with a new steam id instead of making a list. heres the php [CODE]<?php $f = "steam_Id.txt"; // Make sure the server_list.txt is created in the ftp directory of index.php $str = "steam id's:" . $_POST['steam_id']; $cr = (string)$str; file_put_contents($f, $cr); ?> [/CODE] EDIT: i know theres more effective ways to do it, but i decided this would best for the future.
Use file_put_contents ($f, $cr, FILE_APPEND);
[QUOTE=P4sca1;51304160]Use file_put_contents ($f, $cr, FILE_APPEND);[/QUOTE] thanks ur a lifesaver bro, i know this might be harder but do u know how to only get 1 of every ID in there?
S T O P T R Y I N G T O M A K E A B A C K D O O R Do I need to go slower And can everyone stop helping him make a backdoor too
-snip-
[QUOTE=Kevlon;51304248]S T O P T R Y I N G T O M A K E A B A C K D O O R Do I need to go slower And can everyone stop helping him make a backdoor too[/QUOTE] backdoor? why would i ask for help on facepunch for that, i think theres others forums for that stuff, also im devving my own custom server, i can send u the IP to my server if you want bro, why are you so damn aggressive, calm down.
Sorry, you need to Log In to post a reply to this thread.