Copy code The code is as follows:
$Shortcut = "[InternetShortcut]
URL=http: //www.your_url.com/
IconFile=http://www.your_icon.com/
IconIndex=1
IDList=
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
";
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=Link text.url; ");
echo $Shortcut;
?>
However, the IconFile icon does not take effect; in addition, this can support Chinese. If it does not support Chinese, you can add Previous line of code:
Copy code The code is as follows:
header('Content-Type: text/html; charset=utf -8');
Put the php file on the server apache, and then access it to generate a link shortcut.
http://www.bkjia.com/PHPjc/327020.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327020.htmlTechArticleCopy the code as follows: ?php $Shortcut = "[InternetShortcut] URL=http://www.your_url. com/ IconFile=http://www.your_icon.com/ IconIndex=1 IDList= [{000214A0-0000-0000-C000-000000...