• Server o tron
    17 replies, posted
:snip: fuck off
You should do more verification so fwrite errors don't end up coming up. You should also make it so it doesn't say your server was added even though there was an error. Also, you should think about using a mysql database instead of saving stuff in a text file. Overall, you should refine your project before releasing it to the public like this.
"A server called SELECT * FROM user, running the gamemode alert("test1"); on the IP SELECT * FROM user using the port 555. Additionally, it also has a forum which can be found at dhgd." lel somebody tried to injekt so spooki and the text file is just for me to check and add them to the html and there aren't any frwite errors but fuck it i just want this to work so yes this is the last version i'm making of this unless it gets popular because anyways nobody is gonna notice this so it'll be worthless
Before you claim there's no fwrite errors maybe you should properly test your system. [code] Warning: fwrite() expects parameter 1 to be resource, null given in /home/u831335538/public_html/browser/sent.php on line 14 Warning: fclose() expects parameter 1 to be resource, null given in /home/u831335538/public_html/browser/sent.php on line 15 [/code]
:snip: aight i fixed it, it was because fwrite, fclose and the echo were outside the else. { and } are really confusing when your code is messy as fuck
Feel free to parse our dynamic instances: [url]https://rustracers.xyz/servers/[/url] They are launched through matchmaking ([url]https://rustracers.xyz/matchmaking[/url]) so they are only online when there's someone playing. If you need details about the API, feel free to add me on Steam.
[QUOTE=aftokinito;50746706]Feel free to parse our dynamic instances: [url]https://rustracers.xyz/servers/[/url] They are launched through matchmaking ([url]https://rustracers.xyz/matchmaking[/url]) so they are only online when there's someone playing. If you need details about the API, feel free to add me on Steam.[/QUOTE] the fuck no fam i'm not gonna add your gamemode's servers that change every 5 seconds my server list is static and will not update plus it's impossible to get all IP, gamemode and stats from those servers without 10 fucking million lines of worthless code
[QUOTE=Aarone2004;50750225]the fuck no fam i'm not gonna add your gamemode's servers that change every 5 seconds my server list is static and will not update plus it's impossible to get all IP, gamemode and stats from those servers without 10 fucking million lines of worthless code[/QUOTE] You can get all the information from all online servers in real time in JSON format with just 1 API call. It's ok if you lack the skills to do it, I just wanted to help you get some more content on the list.
Or he could just, you know, link to your list. Why make this more complicated than it needs to be? I do really like this idea but I don't actually play the game enough anymore to know what the good servers are.
[QUOTE=MadParakeet;50755411]Or he could just, you know, link to your list. Why make this more complicated than it needs to be? I do really like this idea but I don't actually play the game enough anymore to know what the good servers are.[/QUOTE] I'm not against that, as I said, I just wanted to help him getting his "system" a bit more populated despite how simple and crude it is as of now. Instead, he directly attacked me and the system we developed and showed little respect for someone that was extending his hand to him. Just check his post history, he does it all the time apparently.
[QUOTE=aftokinito;50755433]I'm not against that, as I said, I just wanted to help him getting his "system" a bit more populated despite how simple and crude it is as of now. Instead, he directly attacked me and the system we developed and showed little respect for someone that was extending his hand to him. Just check his post history, he does it all the time apparently.[/QUOTE] ye u want me to add those servers? this is why i cant: i can't because servers are loaded using a .txt file and a view.php file i have, and i can't make txt files for all single servers that are created for the gamemode but i guess i can just make uh your gamemode's name and a http link to the list of your match thingies is there an api that returns (in plain text) the number of current matches
[QUOTE=Aarone2004;50757866]ye u want me to add those servers? this is why i cant: i can't because servers are loaded using a .txt file and a view.php file i have, and i can't make txt files for all single servers that are created for the gamemode but i guess i can just make uh your gamemode's name and a http link to the list of your match thingies is there an api that returns (in plain text) the number of current matches[/QUOTE] ... Why are you using a txt file? Please, do yourself a favor and... - Get a MySQL database (or equiv) - Learn to use [url=http://php.net/manual/en/book.mysqli.php]the MySQL Improved Extension[/url] (Or better yet, [url=http://php.net/manual/en/book.pdo.php]PHP Data Objects[/url]) Infact, you have a lot to learn, some of which I myself haven't learned. BUT I have learned how to use MySQL in PHP, which is what you SHOULD be using.
[QUOTE=Redfiend;50760354]... Why are you using a txt file? Please, do yourself a favor and... - Get a MySQL database (or equiv) - Learn to use [url=http://php.net/manual/en/book.mysqli.php]the MySQL Improved Extension[/url] (Or better yet, [url=http://php.net/manual/en/book.pdo.php]PHP Data Objects[/url]) Infact, you have a lot to learn, some of which I myself haven't learned. BUT I have learned how to use MySQL in PHP, which is what you SHOULD be using.[/QUOTE] nah i dont need mysql i'll just stick with txt thanks anyways [editline]23rd July 2016[/editline] i'm just too lazy
[QUOTE=Aarone2004;50761300]nah i dont need mysql i'll just stick with txt thanks anyways[/QUOTE] [b]You [u][i]DO[/i][/u] need MySQL and this is why.[/b] You are trying to create a service for browsing GMOD servers. Not just any gmod server, but "quality" servers. To do this, you would need to create a database of servers, with fields for server IP, gamemode, last known name, player count, notes, etc etc etc. By storing this information as a text file, you are shooting yourself in the foot. [b]Modifying these details would be a pain in the ass[/b], not to mention that you would be unable to hire moderators for your site due to security risks with giving them FTP access to these files. [b]Filtering this information would require copious amounts of extra code[/b] which isn't needed, and would require [b][u]ALL[/u][/b] of the data to be loaded first. With MySQL, not only can you easily allow moderators to have limited access to moderate entries, you can also filter the information before even loading it, requiring less code on your end. In addition, the data is far more secure, and far easier to access from other locations (say, inside a GMOD addon or on your laptop). It is also easier to find and alter data in a MySQL table. If you don't want to use MySQL, then so be it. Just remember that your service will be quite shit until you do use MySQL. (Although there are many other reasons why it will be shit besides MySQL). [editline]23rd July 2016[/editline] [QUOTE=Aarone2004;50761300]i'm just too lazy[/QUOTE] And that wasn't already obvious from a w3fools-esque site? It's like you haven't even heard of CSS either. [editline]23rd July 2016[/editline] Just to clarify, the problem with loading all the data before filtering it is the time it takes to process. PHP has a default script timeout of 30 seconds. If your script takes longer than 30 seconds to process, PHP goes "Nope, fuck this." This problem is mostly seen in PHPMyAdmin, when uploading large SQL files to import into the database. By using MySQL as your database instead of a single (or a plethora of) text file(s), you can choose to limit how many entries you fetch at a time (Say, 30). [b]This means your load time will be the same whether you have 30 servers stored in your database, or 30 million.[/b] With a text file however, the entire file must be processed before you can do anything with it. The bigger it gets, the longer it takes, until eventually it takes too long for PHP.
Do you guys think the 2004 in his name is when he was born? At least when I was 12 I wasn't posting my badly made website and refusing constructive criticism :v:
[QUOTE=Zelpa;50761540]Do you guys think the 2004 in his name is when he was born? At least when I was 12 I wasn't posting my badly made website and refusing constructive criticism :v:[/QUOTE] Wouldn't surprise me in the slightest. Looking at the element inspector for his site, it literally looks like he followed the W3Schools tutorial for making a webpage. You know the one, that was reasonable to follow way back before Internet Explorer 6. [t]https://i.sli.mg/v7lWFX.png[/t] Which reminds me, [url=http://www.w3fools.com/]Don't use W3Schools[/url] unless it is literally your first web page, in which case W3Schools is ok but don't keep using it once you grasp the basics.
[QUOTE=Redfiend;50761568] [t]https://i.sli.mg/v7lWFX.png[/t][/QUOTE] If your website isn't just a bunch of h6s you're not cool tbh
you know fuck it
Sorry, you need to Log In to post a reply to this thread.