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/