is this a good idea?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Patriot
Forum Commoner
Posts: 34
Joined: Tue Jun 18, 2002 1:36 pm

is this a good idea?

Post by Patriot »

is it a good idea to put a lot of "if" functions on your sidebars,
like:

<a href="newsup.php">
<font face="Tahoma" color="black" size="1">
<?php
if ( is_dir("newsup"))
print "NewsUpdate";
?>
</a>
</font>
or will it take to long to load?
is there a much much much better way?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Well without knowing exactly what you are trying to achieve it is difficult to say if there is a better way...

But if you're that worried about speed, having a CSS file with font definitions in there will make the page load faster than having lines and lines of font tags.

Mac
Post Reply