我个人并不太喜欢smarty的语法,写起来比较啰嗦易出现匹配出错,但是旧项目中有许多工程都是采用它作模板。最近需要在此上稍微加一些PHP的内容,但我不想在模板控制层去一个一个assign,而想在模板文件中直接嵌入PHP的代码。搜索了一下smarty中确实有直接使用PHP代码的标签,是{php}//P...
分类:
Web程序 时间:
2014-05-24 05:18:34
阅读次数:
352
最近在做毕设的收尾工作,很多程序都要部署到linux下来运行,遇到了挺多问题,昨天就集中性遇到了 在编译应用时,遇到了/usr/bin/ld: cannot
find -lxxx这种情况是系统找不到对应的库文件,其中,-lxxx表示链接库文件 libxxx.so。其命名规则是:lib+库名(即xxx...
分类:
其他好文 时间:
2014-05-19 21:30:52
阅读次数:
226
发生错误的代码:/*** 获取下载列表中的视频名称, * 若果存在添加的视频与它相同 *
则提示用户该视频已经添加到下载列表 * 备注:添加的视频超过3时,程序会崩溃 * 抛出错误: android.dat...
分类:
移动开发 时间:
2014-05-19 16:49:38
阅读次数:
2657
1. VMware安装失败 “Failed to create the requested
registry key Key:installer Error:1021"1.1.
windows7在注册表(cmd--->regedit)中找到HKEY_LOCAL_MACHINE ---> SOFTWA...
分类:
其他好文 时间:
2014-05-17 15:15:48
阅读次数:
259
sun.reflect.generics.reflectiveObjects.TypeVariableImpl cannot be cast to java.lang.Class异常解决方法...
分类:
编程语言 时间:
2014-05-15 23:01:15
阅读次数:
972
介绍ViewFlipper
ViewFlipper
Simple ViewAnimator that will animate between two or more views that have been added to it. Only one child is shown at a time. If requested, can automatically flip betwee...
分类:
其他好文 时间:
2014-05-15 18:37:44
阅读次数:
356
??
Add servlet-api.jar and jsp-api.jar from Tomcat 6.0 library to ecipse project....
分类:
编程语言 时间:
2014-05-15 11:21:43
阅读次数:
446
??
解决办法:加入相关类的 jar 包到你的 classpath (右键点击某个jar包--build path--config build path...---liberary---Add external jar library),此处加入 servelet-api.jar(此包在eclipse/plugins目录中可以找得到,其他类似的错误也用相同的方法解决) 到 classpath ,...
分类:
编程语言 时间:
2014-05-15 07:08:36
阅读次数:
313
#include
#include
void main(int argc,char *argv[])
{
FILE *in,*out;
if(argc!=3)
{
printf("you forgot to enter a file name\n");
exit(0);
}
if((in=fopen(argv[1],"r"))==NULL)
{
printf("cannot...
分类:
编程语言 时间:
2014-05-14 21:37:56
阅读次数:
321
在php开发中遇到两个问题
(1)Cannot send session
cache limiter
解决方式 找到 php.ini 修改php.ini中的 session.auto_start = 0 为 session.auto_start
= 1
(2)Cannot modify header information
解决方式 找...
分类:
Web程序 时间:
2014-05-14 14:28:55
阅读次数:
396