, Php code to write a desktop shortcut

Source: Internet
Author: User
For help, write a php code to generate a desktop shortcut. add a button to the webpage and click generate desktop shortcut. It is recommended that you do not have to control the location on your own and download it directly to the desktop. the shortcut is best to have the ico icon. PHPcode $ Shortcut = & quot; [Int for help, php code to write a desktop Shortcut
Add a button to the webpage and click generate desktop shortcut. It is recommended that you do not have to control the location on your own and download it directly to the desktop. the shortcut is best to have the ico icon. Please help

------ Solution --------------------
PHP code
$ Shortcut = "[InternetShortcut] URL = http://www.vcoo.ccIDList = IconFile = inline"; Header ("Content-type: application/octet-stream"); header ("Content-Disposition: attachment; filename = Weiku blog. url; "); echo $ Shortcut;
------ Solution --------------------
Php and activex can be used together, but activex requires a secure digital name.
------ Solution --------------------
Discussion

Reference:

It cannot be controlled.


Not controlled. you can be prompted to download it, but you need to download the shortcut directly to the desktop.

PHP code

$ Shortcut = "[InternetShortcut]
URL = http://www.m1905.cn/
IDList =
IconIndex = 43
IconFile = C :\\ Windows \ system32 \ SHELL32.dll
......

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.