如何将PHP文件包含内部的.asp的菜单文件? (字$ P $ ASP网站内PSS博客文件夹) [英] How to Include an .asp menu file inside a php file? (Wordpress Blog folder within ASP Site)

查看:302
本文介绍了如何将PHP文件包含内部的.asp的菜单文件? (字$ P $ ASP网站内PSS博客文件夹)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

情况:

ASP购物车网站没有任何博客设施。帮助了一个朋友,我安装了Word preSS到它自己的文件夹坐与ASP购物车,并设计了WP主题镜像ASP车的风格。添加博客到ASP包括购物车菜单。现在,我在看,包括字preSS博客中的ASP菜单。

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.

问题:
ASP的'包括'菜单文件生成一些下拉上通过其CMS飞选择 - 所以复制生成的HTML到Word preSS菜单文件不是答案。包括ASP文件插入到Word preSS的header.php文件是去了解它在我的情况的正确道路。

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文件:

~/inc/topmenu.asp

code加入到WP主题的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 -->

我已经通过PHP文件中添加一个包括风格走近它的原因是,对于谷歌将能够按照许多网址和索引是非常重要的。因此,不考虑iFrame的方法。

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 ?

推荐答案

在与戴维科鲁兹和其他程序员协议,我对你们所说 - 我上面使用的解决方案似乎是嵌入现有的和动态的ASP的最佳途径包括文件到Word preSS的结合了WP博客变成一个标准的ASP codeD的网站。因此,我将其标记为回答。

In agreement with Dave Mroz and other programmers I have spoken to - The solution I used above appears to be the best way of embedding an existing and dynamic ASP 'includes' file into WordPress in combining a WP blog into a standard ASP coded website. So I am marking it as answered.

这篇关于如何将PHP文件包含内部的.asp的菜单文件? (字$ P $ ASP网站内PSS博客文件夹)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆