Use PHP \ ASP to create Web Desktop shortcuts

Source: Internet
Author: User

Create a new PHP document: Just remember the name, for example, export cut. php.

Content in the PHP document:

 

Code

1 <? PHP
2 $ shortcut = "[internetshortcut]
3 url = http://www.zhangchu.net/
4 idlist =
5 [{000214a0-0000-0000-c000-000000000046}]
6 prop3 = 19,2
7 ";
8 header ("Content-Type: Application/octet-stream ");
9 header ("content-Disposition: attachment; filename = zhangchu website. url ;");
10 echo $ shortcut;
11?>

 

ASP code

1 <%
2 id = request ("ID ")
3 gname = request ("gname ")
4 If gname = "" Then gname = "4usky Games"
5 shortcut = "[internetshortcut]" & vbcrlf
6 export cut = export cut & "url = http://www.4usky.com/swf/" & ID & ". htm? Desktop "& vbcrlf
7 export cut = shortcut & "idlist =" & vbcrlf
8 Export cut = export cut & "[{000214a0-0000-0000-c000-000000000046}]" & vbcrlf
9 shortcut = shortcut & "prop3 = 19,2" & vbcrlf
10 shortcut = shortcut & "& vbcrlf
11 response. addheader "content-disposition", "attachment; filename =" & gname & ". url ;"
12 response. contenttype = "application/octet-stream"
13 response. Write your cut
14%>

 

 

 

To display the icon, make sure that the favicon. ICO file is in the root directory of the website.

Upload to the site, access address: such as: http://www.zhangchu.net/shortcut.php will be prompted to download a website named zhangchu. urll file, save locally is a shortcut!

 

ASP demo http://www.4usky.com/shortcut/

Related Article

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.