需要写客户端程序。不是JS或PHP能做的。

解决方案 »

  1.   

    我也感兴趣获得认证的Applet是否可以做到?
    获得认证的Active X插件是否可以做到?请大家讨论一下。
      

  2.   

    没有那么复杂!至少对ie是这样的页面中设一按钮
    <input onclick="window.external.ImportExportFavorites(false,'http://localhost/server.php');" type=button value=导出收藏夹 name=Button32>在server.php用 php://input 或 $_POST 接收即可
      

  3.   

    好象不行啊,server.php还是空的,没有导入内容
      

  4.   

    window.external.ImportExportFavorites从WINXP SP2的IE6开始就不能用了
      

  5.   

    唠叨在吗?我只能导出d:/a.htm这样的格式,用http://localhost/a.htm就不行了
    该怎么办才能用网址这种格式呢?
      

  6.   

    html文件能在服务器端接受数据吗?
    test.htm
    <input onclick="window.external.ImportExportFavorites(false,'http://localhost/server.php');" type=button value=导出收藏夹 name=Button32>
    <br>
    <a href='xxx.htm'>查看</a>server.php
    <?php
    $buf = file_get_contents("php://input");
    $fp = fopen("xxx.htm","w");
    fwrite($fp,$buf);
    fclose($fp);
    ?>执行http://localhost/test.htm
    点击按钮“导出收藏夹”
    出现确认对话框时选“确认”
    待出现导出成功对话框后,点击“查看”
    你的“收藏夹”的内容就出现在页面中了