Forum Moderators: phranque

Message Too Old, No Replies

Php Include

is the txt file going to be crawled by Search Engines?

         

thedreamt

5:34 pm on Feb 23, 2007 (gmt 0)



<?php include "menu.txt";?>

I just want to know because Goggle only indexed my homepage.

MichaelBluejay

8:59 pm on Feb 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes. View the source code in your browser after loading the page by choosing "View Source". Can you see the included text there? Then Google can see it.

Choosing "View Source" is the way to tell whether the SE's can see it. If you write out text with Javascript, it won't show up in View Source. But text included via SSI, CGI, or PHP will show up.

The reason is that SSI, CGI, and PHP runs on the server, and assembles the page before sending it to the client (the browser or the SE). But Javascript doesn't happen on the server, that happens in the user's browser. So Javascript-written text doesn't get sent from the server, because it doesn't exist until *after* the browser gets the code for the page.

If that's confusing, then don't worry about it, and just know that the SE's can see everything fine except Javascript-generated text.

thedreamt

4:01 am on Feb 24, 2007 (gmt 0)



Thank you so much.