您的位置:首页 > 编程语言 > PHP开发

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

2013-09-22 00:00 447 查看
<?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;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: