Common files for multiple sites?

With headers and footers they probably mean include files for common page sections. Like the site navigation bar/list or footer such as copyright info. That tends to be placed on multiple web pages so it saves you having to update several files when you alter them.

Thank you xhtmlcoder. I gather that if I want Google to see my meta tags then I should not have them orchestrated by PHP or Server Side Include.

Having other troubles now. Getting style sheets off of other servers is working. Passing a kind of key word via GET is also working and it lets me switch style sheets in the header.

PHP’s include, using single quotes, is working where I used to use Server Side Include.

But now I need additional switches in the middle of my body of html.

Once I accidentally nested php segments in trying to set this up, and of course this didn’t work. So I need to use the echo statement again. What form of string identification do I use? Single quotes? Double quotes? Or the Heredoc method?

I used Heredoc before for including my style sheets, and it works fine.

I am facing another problem. Everytime I enter something which is not right, the free web host butchers my code, chops segments out of it.

So I have to reload from hard disk and try again.

So my html has classes from style rules, so I have to use double quotes in my strings. Of course it also has the LT and GT charcters for its tags.

So the book says to use single quotes if you can.

Can I have double quotes within a single quotes defined string?

If I use doube quotes then I escape the included double quotes with a /, right? Oops, maybe I wasn’t using \, instead I was using /.

Anyway, can I have double quotes included in a single quote defined string?

If I use the Heredoc method, then I don’t think it matters. i don’t have to escape anything unless there was a problem with my end delimiter being in my string. There isn’t this problem.

I have tried all three methods just to echo a statement which is a td tag and its class identifier.

All three methods fail and give php errors on the web page and a source code which is butchered results on the server.

So I upload and try again and again.

I don’t like these free web hosts that try to fix stuff for you. I don’t like it! At a minimum they destroy readability. But sometimes they force you to resort to trial and error to see what will work. It could be my lack of php knowledge or it could be this free host which just wants it some particular way.

Not sure what to do now.

When I watch the computer screen for too long, it screws my vision up. It takes maybe 20 min before I can clearly see distances again!

PHP gets removed from a page before it is delivered to a browser or search engine, so neither your users nor the search engines see your PHP. So it doesn’t matter how you orchestrate them.

Lots of stuff has been experimented with since I last posted. Issues about a free website host which messes with my PHP and what file extensions it does what with and all. But now all seems to be working on another one.

Anyway, so back to this issue of including and Google.

  1. Me experience is that meta tags name=“keywords” and content="… Helps Google. Can anyone confirm, refute, or otherwise correct this?

  2. Google says that having links to my pages other places helps, as does having links to other people’s sites.

  3. So if my .html file does not sit intact on the server, but rather is assembled by Server Side Includes or PHP includes, does Google see the final result like what the browser sees, or does Google just somehow read the incomplete .html? This is important to my development plans because one of the things I want is good Googling for my present sites and then to use those sites to help promote future sites to Google.

Thanks

Description=“” is important for Google, but it now ignored the keyword meta. It was being abused by too many people to be useful any more.

Google says that having links to my pages other places helps, as does having links to other people’s sites.

I doubt it says the latter. What helps your pages to rank well is quality inbound links—meaning links from reputable sites that have similar content.

So if my .html file does not sit intact on the server, but rather is assembled by Server Side Includes or PHP includes, does Google see the final result like what the browser sees …

Yes.