Home > Article > Backend Development > Example of creating desktop shortcut with PHP_PHP tutorial
To use php to create desktop shortcuts, we need to use header, InternetShortcut and some codes that I don’t understand. Let me introduce an example below.
Method: Create a new php file, then throw the following code into it, save it as shortcut.php, and place it on the website and directory
The code is as follows
|
Copy code
|
||||
$shortCut = "[InternetShortcut] URL=http://www.hzhuti.comIDList= [{000214A0-0000-0000-C000-000000000046}]Prop3=19,2 ";Header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=hzhuti.url;"); |
echo $shortCut;
http://www.bkjia.com/PHPjc/631249.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/631249.htmlTechArticleTo use php to create desktop shortcuts we need to use header, InternetShortcut and some codes that I don’t understand, as follows Let me introduce an example. Method: Create a new php file, then...