Posts Tagged with "bad code"

Regular expressions? What's that? Part 2.

Posted by Stanislav Furman on June 2, 2014

Thanks to nightbloos I can continue posting funny code samples that developers meet/write from time to time. :)

Here is another good example of how NOT to do! Please, do not try this at home! This stunt was performed by untrained professionals.  :)

$forReplace = array(",","."," ","-", "+", "#""/");
foreach($forReplace as $repl){
	$find = str_replace($repl,'',$find)

Obviously, in this case a regular expression function must have been used.

If you have another good examples of a funny code samples, please leave it in the comments. ;)

Regular expressions? What's that?

Posted by Stanislav Furman on April 29, 2014
A funny example of some silly PHP code.

This password is already in use. Old school security fail.

Posted by Stanislav Furman on April 23, 2014
Old school security fail.