帮忙看看快捷方式生成了但是图标还是默认的图表没改变<?php
$Shortcut = "[InternetShortcut]
URL=http://www.xxx.com
IconFile=http://www.xxx.com/favicon.ico
IDList=
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
";
$ua = $_SERVER["HTTP_USER_AGENT"];
$filename = "快捷名称.url";
$encoded_filename = urlencode($filename);
$encoded_filename = str_replace("+", "%20", $encoded_filename);
header('Content-Type: application/octet-stream');
if(preg_match("/MSIE/", $ua)){
header('Content-Disposition: attachment; filename="'.$encoded_filename.'"');
}else if(preg_match("/Firefox/", $ua)){
header('Content-Disposition: attachment; filename*="utf8\'\''.$filename.'"');
}else{
header('Content-Disposition: attachment; filename="'.$filename.'"');
}
echo $Shortcut;求大神指点!!!!PHP创建快捷方式快捷方式图标
$Shortcut = "[InternetShortcut]
URL=http://www.xxx.com
IconFile=http://www.xxx.com/favicon.ico
IDList=
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
";
$ua = $_SERVER["HTTP_USER_AGENT"];
$filename = "快捷名称.url";
$encoded_filename = urlencode($filename);
$encoded_filename = str_replace("+", "%20", $encoded_filename);
header('Content-Type: application/octet-stream');
if(preg_match("/MSIE/", $ua)){
header('Content-Disposition: attachment; filename="'.$encoded_filename.'"');
}else if(preg_match("/Firefox/", $ua)){
header('Content-Disposition: attachment; filename*="utf8\'\''.$filename.'"');
}else{
header('Content-Disposition: attachment; filename="'.$filename.'"');
}
echo $Shortcut;求大神指点!!!!PHP创建快捷方式快捷方式图标
解决方案 »
- 菜鸟求助PHPEXCEL在excel中加条件格式
- 从2000年1月1日开始“三天打渔,两天晒网”算,求任意一天打渔还是晒网?
- php源码插入js代码在安装了xp3系统之后不能调用
- ZF中,_redirect()方法是否只能用在内容输出前?
- 关于Smarty模板文件里相对路径的问题
- 想把php这条路走得深一点,请问有必要拿一个网络工程师的证吗?
- 验证码上中文字是繁体
- php连sql server 后,得到日期数据(),显示为2005 七月 25 13:22,而不是2005-07-25 25 13:22
- 如何让自动刷新的时候不提交上一次的连接地址?
- 又是session的问题,winxp+apache2.0.46+php4.3.2+mysql4.23.57
- php接入用python实现 有问题!!!求解
- 一个进程如何去和另个进程通信
URL=http://www.xxx.com/
IconFile=C:\WINDOWS\system32\SHELL32.dll
IDList=
HotKey=0
IconIndex=13
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2好像用网上的就不行了......
但是放到服务器上就不行了,还是用的默认图标