SEO code is HTML but my website start page is index.php

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
zarp
Forum Newbie
Posts: 3
Joined: Tue Sep 22, 2009 9:20 am

SEO code is HTML but my website start page is index.php

Post by zarp »

Hi Guys,

I'm not much of a PHP developer, most of my stuff is Oracle. But I've just got a new site and I'm putting in SEO into my main pages. But I have a problem, I know HTML and I'd be able to put my code into my index header page, but my main page is PHP (index.php).

my SEO HTML code looks like below, how would I convert that to PHP to place it in my index.php page.... ???

<title>Friends | Free Friends Forum | Online Communities</title>
<meta name="description" content="Specializes in internet friends & user videos. Join free!" />
<meta name="keywords" content="Internet friends, user videos, online comunity, free online community, chat with friends, join social network." />
<meta name="robots" content="index,follow" />
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: SEO code is HTML but my website start page is index.php

Post by requinix »

PHP creates HTML. Just put it in.

If it's that hard for you, what does index.php look like?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: SEO code is HTML but my website start page is index.php

Post by pickle »

Anything not inside <?php ?> tags will be treated as HTML.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply