This article mainly introduces PHP to generate website desktop shortcuts for code sharing. the code is very simple. just copy and change the domain name to use it. if you need it, refer to PHP to generate desktop shortcuts, modify the website you want to generate when you generate it.
Dianji.html code:
The code is as follows:
Generate a left-side shortcut
Shengcheng. php code:
The code is as follows:
<? Php
// The left-side shortcut for website survival --- function
$ Url = $ _ GET ['URL'];
$ Filename = urldecode ($ _ GET ['name']);
$ Filename = iconv ('gbk', 'utf-8', $ filename); // character set conversion (no conversion is required)
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;
?>