Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML then PHP then back to HTML

Status
Not open for further replies.

rizza

Programmer
Jul 16, 2002
66
US
I used dreamweaver to help me design my site...and i've got a question regarding the template's i've made.

i've made some templates and are using them allot.

they are alaid out as such

html
<php include>
html
<editable area>

In here i use PHP to write the html when i need it.

eg. Like a db driven links page. The links are in a table and the table is built using echo&quot;html code&quot;

<end editable area>
<php include>
html.....


I've been told that when you do this in ASP there are performance issue's. Does that hold true with PHP as well.

And if this is so bad how should i do it.

It just seems to me that to get PHP to write all my &quot;header&quot; and &quot;footer&quot; info will take me hours to get the
php echo statements write. I have the usuall Dreamweaver image rollover code at the top and just thing that would be so hard to get PHP to write out.

Hope you all understand what i mean
Rizza
 
performance in this case is not that badly affected...php does not use the COM models that ASP is built on and therefore is faster...

my set up is similar to yours though I include the header (menus and such) with an include function call to avoid having to maintain a separate header for each page...

I wouldn't worry about (time lag is milliseconds anyway) Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
No, PHP does not have the kind of performance issues as ASP does with this kind of coding. It's quite the opposite, as it doesn't have to parse the HTML and echo it, it just prints it as it is. //Daniel
 
I would avoid Dreamweaver templates. You could do the same with PHP includes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top