PDA

View Full Version : Are php include tags seo friendly?



Uubnewb
February 10th, 2011, 12:19 PM
Are php include tags SEO friendly? If not does anyone know of an alternative I can use?

Thanks in advance.

Arndt
February 10th, 2011, 02:19 PM
Are php include tags SEO friendly? If not does anyone know of an alternative I can use?

Thanks in advance.

What does SEO friendly mean?

Vaphell
February 10th, 2011, 02:22 PM
'search engine optimization' i guess

AlexC_
February 10th, 2011, 07:07 PM
PHP runs on the server side, your webserver will return the response of the script ran which I'm going to assume outputs HTML of some sort. I'll let you come to the conclusion here based on that information.

Uubnewb
February 11th, 2011, 09:34 AM
Sorry for taking so long to respond.

Yes, SEO stands for Search Engin Optimization (thanks Vaphell).

AlexC, let me see if I understand this correctly:
Since the PHP include statement returns normal HTML, the bot will only see the normal HTML?

AlexC_
February 11th, 2011, 11:19 AM
AlexC, let me see if I understand this correctly:
Since the PHP include statement returns normal HTML, the bot will only see the normal HTML?

Your webserver runs the PHP script, it then uses the output of said script as the response for the HTTP request. Think, if PHP was sent to the client and was ran on the client side what would you expect to see if you viewed the source code for say, www.facebook.com? You'd see the PHP right?

So because you're *not* seeing the PHP code when you view the source, what does this tell you?