justuptime.com - monitor your servers & websites

PHP page or PHP script in HTML page

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.
kirpal_06391's picture

He has: 12 posts

Joined: Jun 2006

What do most people like to create "PHP page or PHP script in HTML page" Roll eyes

timjpriebe's picture
DeveloperModeratorSponsor

He has: 2,666 posts

Joined: Dec 2004

Are you asking what tool people use to write those pages? Personally, I tend to use Dreamweaver. Although it's not unusual for me to use a text editor, either. On my PC, I use Scite, and on my Mac, I use TextWrangler

Greg K's picture
Moderator

He has: 1,665 posts

Joined: Nov 2003

I think I get what is being asked, which style of coding do you use:

PHP Page I think means where the entire file is basically wrapped in <? ?> tags, and most all content sent to the browser is outputed by php (echo's etc.)

PHP Script in a HTML page I think means where most of the file is a true HTML file, which php code inserted just in the areas needed. (ie, all layout and everything is regualr HTML code, yet the content (say the rows from a database done from PHP) is just in the middle of a file.

Myself, it depends on the size of the project. The main project I maintain it is all a script, every file starts with <? and ends with ?>, as the layout and everything is pulled and outputed from template files based on which module you are on.

Small projects, I will just add the php code in the middle of the regular html page. Also depends on what the php does.

-Greg

[This space intentionally left blank]

Cool Geek Supplies: www.ThinkGeek.com