View Full Version : PHP Newbie


snap
07-07-2007, 06:22 AM
I have just recently gotten involved with PHP and i'm wandering how it works in the SE's (ranking).
For example PHP files may use <include footer>
In the footer will have the links.

How do the SE's treat this? Do the links count from the page that included the footer or only from the file footer?

snap
07-11-2007, 11:21 AM
I haven't received any responses and would still like to know how this works.
Maybe i should have asked this way:
How do i optimize a PHP site for the SE's?

kutsarita
07-12-2007, 06:39 AM
scripts and and links are crawlable..

snap
07-12-2007, 09:38 AM
kutsarita, thanks for the reply.

My confusion is when i view a .php file there is hardly anything there, some basic page elements. However, the php script pulls the data to create the page.

So you are saying the Spiders will see the data on that page?

Paz
07-15-2007, 07:57 AM
Hi Snap,

Provided your server is working properly the include files will be added on the fly and seamlessly - so will the links there. In other words, Google (or anyone else) have no way of determining whether the links were added manually or using an include script.

snap
07-15-2007, 01:42 PM
Paz, thanks for the info, i finally found something in a php tutorial explaining how that worked.

Does the same go for java scripts?

Paz
07-15-2007, 02:23 PM
No javascript's much more difficult. I would assume that if a page is linked via javascript only, then Google won't find/follow it - for some time at least; even if it's SE friendly.

Googlebot browsers have javascript switched off. Having said that, if you have javascript code with with something embedded that's clearly identifiable as a link (say because there's a filename with an .html extension), then that link will be followed and will pass PR. It'll take a long time though.