Thread: PHP -001 class
View Single Post
  #18  
Old 03-19-2005, 02:27 PM
IcIshoot is offline IcIshoot

Join Date: Mar 2004
Location: Farmington Hills, MI
Posts: 1,473

Send a message via AIM to IcIshoot Send a message via MSN to IcIshoot Send a message via Yahoo to IcIshoot
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
Reply With Quote