Validate your code (PHP, CSS or Javascript) for consistency with a coding standard in order to prevent bugs and to make the code easy to maintain, read, share and distribute.

Code Sniffer is also avaible as a module for EasyPHP Devserver visibility

get the latest news :



OTHER TOOLS FOR DEVELOPERS
Paste your code below *, select a standard
and
* or use this sample and try to correct errors.
<?php $link = mysql_connect("example.com:3307","mysql_user","mysql_password"); if (!$link) { die("Could not connect: ".mysql_error()); } echo "Connected successfully"; mysql_close($link); $link = mysql_connect("127.0.0.1:3307","mysql_user","mysql_password"); if (!$link) { die("Could not connect: ".mysql_error()); } echo "Connected successfully"; mysql_close($link); ?>





CODING CONVENTIONS

Coding conventions are a set of guidelines for a specific programming language that recommend programming style, practices, and methods for each aspect of a program written in that language.

These conventions usually cover file organization, indentation, comments, declarations, statements, white space, naming conventions, programming practices, programming principles, programming rules of thumb, architectural best practices, etc. These are guidelines for software structural quality. Software programmers are highly recommended to follow these guidelines to help improve the readability of their source code and make software maintenance easier.

Coding conventions are only applicable to the human maintainers and peer reviewers of a software project. Conventions may be formalized in a documented set of rules that an entire team or company follows, or may be as informal as the habitual coding practices of an individual.

read more...