Home >Backend Development >PHP Tutorial >php实现网站生成桌面快捷方式

php实现网站生成桌面快捷方式

WBOY
WBOYOriginal
2016-06-23 13:47:571163browse

PHP生成桌面快捷方式就是这么的简单,大家生成的时候改下你要生成的网站即可

dianji.html代码:

生成左面快捷方式


shengcheng.php代码:

//网站生存左面快捷方式---功能
$url = $_GET['url'];
$filename = urldecode($_GET['name']);
$filename = iconv('GBk','utf-8',$filename);//字符集转换(没有需要转的就不转)
if (!$url || !$filename) exit();
$Shortcut = "[InternetShortcut]
URL={$url}
IDList=
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2";
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename={$filename}.url;");
echo $Shortcut;
?>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn