网络编程 
首页 > 网络编程 > 浏览文章

PHP 输出URL的快捷方式示例代码

(编辑:jimmy 日期: 2024/5/20 浏览:3 次 )
复制代码 代码如下:
<?php
/**
* Internet Shortcut
*
* Add the following into "head":
* <link href="favicon.ico" rel="icon" type="image/x-icon" />
* <link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
* <link href="favicon.ico" rel="bookmark" type="image/x-icon" />
*/
$shortcut = '[InternetShortcut]
URL=http://onens.com/
IDList=
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
';
header('Content-type: application/octet-stream');
header('Content-Disposition: attachment; filename=Onens.Com.url;');
echo $shortcut;
上一篇:PHP导航下拉菜单的实现如此简单
下一篇:PHP截断标题且兼容utf8和gb2312编码
友情链接:杰晶网络 DDR爱好者之家 南强小屋 黑松山资源网 白云城资源网