I had an interview today for a backend development job. They asked for me to send them a copy of some sample code I have written in PHP and javascript. I sent the same code to another company who asked for the same thing but unfortunately they said the programming was not good enough. I have learned a decent amount of PHP since writing this code and was thinking about write another sample or two to send to this new company. Could anyone look over the code and give me any suggestions on what i should improve, or what a prospective company would look for in sample code? Thanks code can be downloaded here
Using shorthands like <? include("includes/footer.php"); ?> Code (markup): does not look good to an employer. You should always use <?php include("includes/footer.php"); ?> Code (markup): You need to work more on the quality of your code. It may do the job, but its all about producing efficient and reliable code.