Page 1 of 1
Does GoogleBot see PHP-Code?
Posted: Sun Nov 19, 2006 4:34 am
by fatman
If I dynamically construct a page with PHP-Code, does the GoogleBot see the code on the server, or does it only see the same as client-side?
Code: Select all
if ($site == 'hprp') {
echo "Example text1 - hprp";
}
if ($site == 'sunrise') {
echo "Example text2 - sunrise";
}
Will the Bot see only the text I want to display, or will it see both? (Example text1 - hprp or Example text2 - sunrise)
Re: Does GoogleBot see PHP-Code?
Posted: Sun Nov 19, 2006 4:41 am
by timvw
fatman wrote:If I dynamically construct a page with PHP-Code, does the GoogleBot see the code on the server, or does it only see the same as client-side?
Code: Select all
if ($site == 'hprp') {
echo "Example text1 - hprp";
}
if ($site == 'sunrise') {
echo "Example text2 - sunrise";
}
Will the Bot see only the text I want to display, or will it see both? (Example text1 - hprp or Example text2 - sunrise)
How does 'the Bot' get access to the script? I presume via a HTTP request (so he's a client). The client only sees the output of the script (if everything goes well

).
Posted: Sun Nov 19, 2006 4:47 am
by fatman
Hi timvw
I have to confess, I have no idea how GoogleBot gets access to my pages (Dont know anything much about Bots, Spiders, Crawlers)
I am just curious about SE robots
Posted: Sun Nov 19, 2006 2:31 pm
by kaisellgren
Answer is NO!