Forum Moderators: coopster
I would like to create a content rotator script that can be included in an html file, so that the content can be spidered by the search engines. Therefore, javascript is out of the picture. Does anyone know how to execute a php or asp script inside an html file? Or is there some way to include dynamic content that is visible to a spider as static content on an html page? Or do search engines list and rank php and asp pages as frequently or as well as they do .html files?
Thanks,
Jenn
It sounds like you want to do some sort of a include. This is possible with both php and asp as you mentioned and it appears as regular code to the search engines. In order for this to work correctly the page will have be be named with a .php or .asp extension otherwise the server will not interpret the code and it will be treated as regular text.
In either language includes are simple. Here is a php version:
<?php include("page.php");?>