PHP outputs sample code for the URL shortcut

  • 2020-09-28 08:49:57
  • OfStack

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

Related articles: