看文字就知道是已经执行了
一般是因为执行了两次session_start();或者类似的操作
解决方法
1) in php.ini file set session.autostart to 0
session.auto_start = 0
2) In your code use this line
if (!session_id()) session_start();
...
分类:
其他好文 时间:
2014-11-25 10:52:57
阅读次数:
184
java.lang.IllegalStateException:getWriter()hasalreadybeencalledforthisresponse出现原因:1.代码中有打开的Response.getWriter(),未关闭2.再次使用了ServletOutputStreamout=response.getOutputStream();通过查看代码,response中的usingWriter=true,想办法将该标志位设..
分类:
编程语言 时间:
2014-11-24 22:48:16
阅读次数:
203
在socket函数和bind函数之间加入一段代码://建立服务器端socketif((server_sockfd=socket(AF_INET,SOCK_STREAM,0))<0){ perror("server_sockfdcreationfailed"); exit(EXIT_FAILUR...
分类:
其他好文 时间:
2014-11-24 16:37:41
阅读次数:
167
在magento项目中多次遇到这样一个错误:Item (Bluecom_Onefieldusername_Model_Customer) with the same id "98" already exist解决方案:(1) 新建一个类,必须继承Varien_Objectclass Mypackag...
分类:
其他好文 时间:
2014-11-24 15:08:59
阅读次数:
132
@echo服务端关闭:
taskkill -f -im nupdate.exe
taskkill -f -im nstats.exe
taskkill -f -im nserver.exe
taskkill -f -im nsched.exe
taskkill -f -im nrouter.ex
taskkill -f -im nreplica.exe
taskkill -f -im nmtc.exe
taskkill -f -im nmaps.exe
taskkill -f -im nlogasio.ex...
原文地址:http://www.cnblogs.com/yangmingming/archive/2010/02/03/1662307.htmlIldasm.exe 概要:一.前言: 微软的IL反编译实用程序——Ildasm.exe,可以对可执行文件(ex,经典的控制台Hello World 的 ....
分类:
其他好文 时间:
2014-11-24 00:43:29
阅读次数:
297
html5 兴起- 乔帮助在2010年发布的:关于对flash的思考,提到有了h5放弃 flash1 富图形,富媒体 2 本地存储 cookie3 LBS 基于地理位置的服务(微信,附近的人,商家) -app 网页LBS ex:google gmail 基础地理位置的服务和应用 -是它的最好的...
分类:
Web程序 时间:
2014-11-23 01:52:34
阅读次数:
284
通过Imageview显示网络传回来的byte数据,发现内存会不断增大,最终导致内存溢出。于是手动去回收Bitmap的数据,发现会main ex (Canvas: trying to use a recycled bitmap)
网上查询下,发现重新Imageview的onDraw时,在super执行try
catch,发现解决了问题,这样不必手动bitmap.recycled(),...
分类:
移动开发 时间:
2014-11-22 23:10:15
阅读次数:
210
一、进入编辑器行:edit,e,ex屏幕:vi,v,viewvi -r filename(继续意外中断的文件编辑)vi file1 file2 file3(编辑完前一个文件,用:w保存后,用:n开始下一个文件编辑)vi -x filename(对encrypt加密文件编辑)vi 中执行Unix命令(...
分类:
系统相关 时间:
2014-11-22 22:56:12
阅读次数:
353
CImageList m_ImageList;
m_ListCtrl.SetExtendedStyle(m_ListCtrl.GetExtendedStyle() | LVS_EX_FULLROWSELECT |LVS_EX_SUBITEMIMAGES);
imglist.Create(32,16,ILC_COLOR,8,4);
int m_nIdxIco1 = m_ImageList.Add(...
分类:
其他好文 时间:
2014-11-22 13:27:21
阅读次数:
188