Situation:
ASP shopping cart site without any blog facility. Helping out a friend, I installed Wordpress into its own folder to sit with the ASP shopping cart and designed the WP theme to mirror the ASP cart style. Adding the blog to the ASP includes menu for the shopping cart. Now I am looking at including the ASP menu within the WordPress blog.
Issue: The ASP 'includes' menu file generates some drop down options on the fly via its CMS - so copying the generated html into the Wordpress Menu file is not the answer. Including the ASP file into the header.php file of Wordpress is the right way to go about it in my situation.
ASP File:
~/inc/topmenu.asp
Code added into WP Theme header.php:
<!-- #site-navigation -->
<?php
ini_set (user_agent, "IE");
ini_set (default_socket_timeout, "3");
error_reporting(0);
$theurl="http://www.perfectlyperfectpresents.com/inc/topmenu.asp";
$filestring=file_get_contents("$theurl") ;
echo "$filestring";
?>
<!-- #site-navigation -->
The reason I have approached it via an "includes" style inside the PHP file is that it's very important for the Google to be able to follow the many URL's and indexed. Hence, not considering the iFrame approach.
My Solution above works within the blog as expected. BUT Is there a more elegant way of achieving the same which works faster within the server ?