WoW Gold - Online advertising - Payday Loans - Submit articles - Travel news

PDA

View Full Version : Is this kind of link structure bad for SEO?


Edz
Feb 10th 2006, 10:04 am
If i use this kind of technique to pull in links on my page would this hurt any SEO efforts or would it not have any negative impact?

This is what i am going to use to pull in links on a bunch of pages for saving time and effort with updating articles and such.

<?php
echo "<a href=\"http://www.google.com/\">Google</a>";
?>

Thanks.

mdvaldosta
Feb 10th 2006, 10:08 am
That would output as html, the php tags wouldn't be seen. But, I think I know what your trying to do and theirs a better way of doing it.

Put your links in a file in html format, and wherever you want those links to appear simply put: <? include("file.php") ?>

JEET
Feb 10th 2006, 10:16 am
If you are using PHP , then use the Include command instead of echo .
The output is anyway a final PHP page which has the link written in simple html so it shouldn't hurt using ECHO either .
Although with INCLUDE you can change the navigation by changing one file only.

If that link is not in navigation , then I think you can use echo because it also "writes" the text/ html to the final page ...

Just a moment late...Almost the same post.
Regards
Jeet

Edz
Feb 10th 2006, 10:24 am
Well, it is not intended for main menu navigation but as an extra to point to other news stories.

@Mdvaldosta

So i can make a php file that holds for example this kind of coding:

file.php
<a href=\"http://www.google.com/\">Google</a>
<a href=\"http://www.google.com/\">Google</a>
<a href=\"http://www.google.com/\">Google</a>
<a href=\"http://www.google.com/\">Google</a>

and then place this code whereever i want to pull in the links on my page:

<? include("file.php") ?>

Just to be sure ;)

NameWolf
Feb 10th 2006, 11:29 am
To come back to the original question, this would not have any negative effects on seo, correct ?

Edz
Feb 10th 2006, 11:31 am
That is correct, from what is been said i come to the same conclusion.

Edz
Feb 10th 2006, 11:33 am
BTW, how should the code look like if i want the text to appear in bold and fontsize arial and fontsize 8?

Oh yeah and color of my choosing?

mdvaldosta
Feb 10th 2006, 11:34 am
No it wouldn't. Whatever you put in that file and call with a php includes will be output in html just like you put it there yourself. For ease of maintenance, I build my sites somewhat like this:

doc type
<title>my title</title>
meta tags
<? include("header-navigation.php") ?>
my page content, blah blah
<? include("footer.php") ?>

Now, when I need to update my footer or add another navigation link or change my logo... I do it in 1 file only. Hell, I could change my whole design for a site with 10,000 pages editing just a couple files.

mdvaldosta
Feb 10th 2006, 11:36 am
BTW, how should the code look like if i want the text to appear in bold and fontsize arial and fontsize 8?

Oh yeah and color of my choosing?

It's as simple as what you'd do if you put the links there yourself.

For more clarification, what I do when I design a site is build the whole site in html. Then, I chop it up into a header, footer, navigation, and what's left is my content. Put them all in separate files. Then, I just build new content pages and call the header, footer, and navigation.