I use
Code:
<?php
php code here
?>
95% of the php that I do I use a template system that keeps the html out of the php files.
that way I can change the look of a page with out having to touch the php code. Just have to edit the template file which would look some thing like (a real basic example)
Code:
<html>
<body>
Hello {username}, today is {date}.
</body>
</html>
The template system then pulls that from the template file and replaces the variables ( {username} and {date} ) with the data.
for comments I do
Code:
// for 1 or 2 lines of comments
// such as this.
/*and this for several lines
1
2
3
4
*/
I use Maguma Studio, which provides a bult in php interpeter so that you can test code right then and there with out uploading to a webserver.
Plus syntext checking.
IcIshoot