当前位置:首页 > PHP教程 > PHP常见问题

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

复制代码 代码如下:

<?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;

【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!