is there a way of doin php includes with html and javascript effectively or is php better. I want it to be as search engine friendly as possible please. Thanks for your help
patrickrock
7:22 pm on Apr 25, 2005 (gmt 0)
if you're going to include I would use either html (i assume you mean server side includes) or php.
Why?
Because the page is processed at the server level and then served to the client (IE the search engine), so that way you make sure the SE sees it.
adamnichols45
7:31 pm on Apr 25, 2005 (gmt 0)
thanks for your reply what is the best way todo the include via html please?
jatar_k
7:32 pm on Apr 25, 2005 (gmt 0)
there is no include via html
you need to use php
adamnichols45
7:45 pm on Apr 25, 2005 (gmt 0)
thats what i thought although i could use javascript but is this seo friendly? Am i just better off using php and paying the extra hosting costs?
TheRookie
7:46 pm on Apr 25, 2005 (gmt 0)
<?php include 'includeurl.php'; ?>
Edit: Whoops, thought you actually wanted to see what the php looked like.
patrickrock
8:14 pm on Apr 25, 2005 (gmt 0)
technically speaking no, html doesn't do includes, but your webserver will.
Here's a link to the how to from the apache group: [httpd.apache.org...]
Just google "Server Side Includes" and you'll find plenty of information to use.
jatar_k
8:41 pm on Apr 25, 2005 (gmt 0)
adamnichols45,
I think your best bet in the long run is to just get php with your hosting.
patrickrock
9:44 pm on Apr 25, 2005 (gmt 0)
My blabbering about Server Side Includes I'm with Jatar, get a server with PHP. Mine has been good to me and is low cost.
[edited by: jatar_k at 10:01 pm (utc) on April 25, 2005] [edit reason] removed url [/edit]