Hi all,

index.php =

<?php include('1.php'); ?>

when a search engine finds and indexes this page, will it read nothing or will it read the contents of 1.php too?

Im guessing because its a server-side script the document will be merged and then sent to the search engine so it can index it but im not sure.

Thanks

Max

php is a server-side scripting environment. The browser, the user (and that includes search engines) will never see one line of your php code.

Whatever your php code outputs to the browser will be seen though.

okay thanks. I was wondering if it is okay to write a page's content using php's include files.

thanks for the help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.