Too much?

admin

Administrator
Staff member
Hi all,

I just launched a site the other day with help from you guys, a special thanks to vicent who answered all my posts. the url is <!-- w --><a class="postlink" href="http://www.gameguys.cc">www.gameguys.cc</a><!-- w --> if you're intrested ... scuse the flash, it wasn't my idea ;)

Anyways, I am looking at it and still fixing things (still not done but launched anyways :) and wondering if my code is any good. It works thats what's important but how do I know if there is a better way to do it?

I'm pretty much self tought when it comes to just about everything, dropped out of highschool in grade 9 to travel and actually learn. The downside is I know only what I use. So I'll find a function or way of doing things that happens to come first and use it... even if it gets a little jumbled. But is there a better way?

Simple questions I've found myself asking... what's faster, print or echo? Should I code as:
echo "<TD WIDTH=\"10\" BGCOLOR=\"$bg\">\n";
or
echo "<TD WIDTH=\"10\" BGCOLOR=\"".$bg.">\n";
or
<TD WIDTH="10" BGCOLOR="<?php echo $bg; ?>">

How do I know how many variables is too many for a page? or does it only depend on the size? If a piece of code is used more than once, should it be as include(file) or is it faster to just have multiple copies in the code? How does php parse and send a file? is there a way I can set it up to load faster without effecting the layout?

Reading through these forums I have come accross questions like these but no clear answers... does anyone really know? or is it all just prefrence?

I'm not sure this post belongs in coding help... so to make it here's my coding question:

How do I code a load time tester? (including testing individual function times)

Oh, and a side note related... how do you test the speed to the registrar(godaddy) vs the time to the server(noxraq)?

Mark
*Only slighly tired at the end of two 21 hour days*
 
Back
Top