That triggered my OCD. Why do you need add two strings together? Also moar spaces plz, looks messy c:
Code:print "<br>"; print "<br>Account ID: " . $r['id']; print "<br>Username: " . $r['uuid']; print "<br>Name: " . $r['name']; print "<br>Admin: " . ($r['admin'] ? "Yes" : "No"); print "<br>Character slots: " . $r['maxCharSlot']; print "<br>Name chosen: " . ($r['namechosen'] ? "Yes" : "No"); print "<br>Email verified: " . ($r['verified'] ? "Yes" : "No"); print "<br>Vaults unlocked: " . $r['vaultCount']; print "<br>Guest: " . ($r['guest'] ? "Yes" : "No");
LvlAndFarm (11-19-2014)
I guess, you can do whatever you feel like there. That's my opinion though
Also:
would be:Code:print "<br>Account ID: " . $r['id'];
since single quotes are somewhat faster than double quotes and echo is faster than print.Code:echo '<br>Account ID: ' . $r['id'];
Just some tips for anyone interested in PHP reading this thread
Last edited by donran; 11-19-2014 at 04:36 PM.
BlackRayquaza (11-22-2014),LvlAndFarm (11-19-2014)
[MPGH]Ahl (11-19-2014)
There are a couple reasons why you'd want to use Go instead of PHP (and C#, under some aspects):
1. Go is SIGNIFICANTLY faster; my RealmEye implementation can handle thousands of simultaneous connections on a raspberry pi or similar shit hardware (not counting the network)
2. Go is statically typed, which leads to WAY less bugs than you would think
3. Go COMPILES TO NATIVE (x86, x86_64, ARM, whatever you want) and STATICALLY LINKED: after you compiled it, you can just run and/or share (as long as the target architecture and OS is the same, but you can crosscompile it too) the EXE or ELF or whatever
4. You don't need to have an http server to serve as middleware: it's a single piece (you technically can, however, use it as you'd use PHP)
BlackRayquaza (11-22-2014)
BlackRayquaza (11-22-2014),KieronZeCoder69 (11-21-2014),Trapped (11-23-2014)
LvlAndFarm (11-22-2014)