摘要: 参考站点:http://hudeyong926.iteye.com/blog/1047304# <?php # // *nix # echo DIRECTORY_SEPARATOR; // / # echo PHP_SHLIB_SUFFIX; // so # echo PATH_SEPARATOR; // : # # // Win* # echo DIRECTORY_SEPARATOR; // \ # echo PHP_SHLIB_SUFFIX; // dll # echo PATH_SEPARATOR; // ; # ?> f (st... 阅读全文
posted @ 2012-06-28 17:59 johnsonshu 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 好象需要序列化之后才能保存,取得时候再反序列化还原如果不这样的话,出现 [instance of __PHP_Incomplete_Class given]错误? $cond = new Search_Cond_Tour(); if ($cond_to_session) { $cond->_customer_type = $_POST['customer_type']; $cond->_tour_type = $_POST['tour_type... 阅读全文
posted @ 2012-06-28 17:58 johnsonshu 阅读(331) 评论(0) 推荐(0) 编辑
摘要: svn在源代码中嵌入作者或版本等信息以前在dreamarts时觉得特别好用。能知道文件名是哪一个调试的时候找的话,就方便多了目前支持5个关键字:Date(修改时间)、Revision(版本)、Author(提交者)、HeadURL(库路径)、Id(前面4个的组合) 必须在eclipse把项目整体给设置一下参考:http://hi.baidu.com/gevilrror/bl ... 87f016a18bb791.htmlHowever keyword substitution is not activated by default from within Eclipse and its SVN 阅读全文
posted @ 2012-06-28 17:56 johnsonshu 阅读(358) 评论(0) 推荐(0) 编辑
摘要: http://www.javaroad.jp/opensource/js_tomcat3.htmLoadModule proxy_module modules/mod_proxy.soLoadModule proxy_ajp_module modules/mod_proxy_ajp.so<Location /docs/>ProxyPass ajp://localhost:8009/docs/</Location> 阅读全文
posted @ 2012-06-28 17:55 johnsonshu 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 2009年的文章?反正安装这个下来,特别容易就装上了。 测试没有问题但编辑文本的话,我还是用vi来的方便。http://www.rackspace.com/knowledge_center/index.php/CentOS_-_Installing_ffmpegLet's add the repository by adding an entry into YUM, the default package manager for CentOS.# sudo nano -w /etc/yum.repos.d/dag.repo You will need to add the follow 阅读全文
posted @ 2012-06-28 17:53 johnsonshu 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 上网调查,有的说是ghostscript8.7安装包的事http://thomas-genin.com/blog/command-line-2/ghostscript-convert-error-undefined-in-findresource/写了一堆,感觉不是针对日文pdf的,所以搜索关键字加上了 Adobe-Japan1 ,终于出现了靠谱的文章http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=149341) installed Japanese-support yum groupinstall jap 阅读全文
posted @ 2012-06-28 17:52 johnsonshu 阅读(667) 评论(0) 推荐(0) 编辑
摘要: find ./ -type d -print0 |xargs -0 chmod 777 阅读全文
posted @ 2012-06-28 17:50 johnsonshu 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 如果不能随心制定下载方式的话,查查这些参数 header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="'.$f_name.'"'); header('Content-Length: ' . filesize($f_full));另外,CI里有download he 阅读全文
posted @ 2012-06-28 17:49 johnsonshu 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 1) php.ini文件的位置查看,可以用 [php --ini]查看,apache的时候,写个php调用phpinfo()函数进行查看 2) 编译单个模块 参考:http://mattiasgeniar.be/2008/09/ ... nsions-from-source/ 以mysqli作例子 1. cd php-5.3.6/ext/mysqli 2. phpize 3. ln -s /usr/lib/libmysqlclient.so /usr/lib/mysql/libmysqlclient.so 4. ./configure 5. make 6. cp /root/php-5.3.6 阅读全文
posted @ 2012-06-28 17:48 johnsonshu 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 参考:http://codeigniter.com/forums/viewthread/96428/ Before the query runs: $this->db->_compile_select();And after it has run: $this->db->last_query(); 阅读全文
posted @ 2012-06-28 17:47 johnsonshu 阅读(229) 评论(0) 推荐(0) 编辑