保存到桌面、设为桌面的PHP代码

新建一个文件 shortcut.php 代码如下:
<?php
$Shortcut = "[InternetShortcut] URL='http://tqybw.net' IDList=IconIndex=43 IconFile=/favicon.ico HotKey=1626 [{000214A0-0000-0000-C000-000000000046}] Prop3=19,2";
 Header("Content-type: application/octet-stream"); 
header("Content-Disposition: attachment; filename=天气预报网.url");
 echo $Shortcut;
?> 
注意:编码最好为GBK,不然中文文件名在IE点击下载下有可能会知码!

相关文章:

  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
  • 2022-02-09
  • 2021-12-19
  • 2022-01-25
  • 2022-12-23
  • 2021-10-08
猜你喜欢
  • 2021-08-28
  • 2021-09-18
  • 2022-12-23
  • 2021-05-08
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
相关资源
相似解决方案