View Single Post
Old Aug 6th, 2006, 2:57 AM   #5
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by DaWei
I will say that if you understand what "include" does, and you're trying to include Google's web-resident index page, you aren't paying any attention to yourself.
DaWei is probably correct in this regard. The PHP manual page says:
Quote:
The include() statement includes and evaluates the specified file.
This means that any <?PHP ?> tags on Google's page will be executed by your server. Now, it's somewhat unlikely that Google would have such tags on their homepage, but you're essentially turning control of your server over to Google, or any other site you choose to include. Any of these sites with malicious intentions could then wipe your harddrive, or download your data, or conceivably anything at all.

Thus, including sites that you do not control is not a very good idea.
Arevos is offline   Reply With Quote