Forum Moderators: coopster

Message Too Old, No Replies

Php includes

         

adamnichols45

7:02 pm on Apr 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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)

10+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



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)

WebmasterWorld Administrator 10+ Year Member



there is no include via html

you need to use php

adamnichols45

7:45 pm on Apr 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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)

10+ Year Member



<?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)

10+ Year Member



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)

WebmasterWorld Administrator 10+ Year Member



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)

10+ Year Member



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]

patrickrock

3:13 am on Apr 26, 2005 (gmt 0)

10+ Year Member



Thanks Jatar.