PHP Dark Arts: Sockets
re-cycledair.com
re-cycledair.com
b: the overall skill level of programmers ranges across several orders of magnitude, amongst the group of folks who are "programmers" or software engineers by job description only a small fraction of them are capable of socket programming without getting well in over their head quickly.
<?php echo htmlspecialchars($username); ?>Do you think values should be escaped before output? Or that usernames don't include chars that need escaping in HTML? Or perhaps you'd add extra filtering to ensure that page cannot become ill-formed due to encoding error? Or perhaps it's incorrect to use PHP at all? ;)