易截截图软件、单文件、免安装、纯绿色、仅160KB

apache and php common tips and problems

When I deploy php application on apache, some problem come out, and solved. Here's the tips and problems solved.
0.How could I deploy an apache server armed with php, mysql, perl, and phpMyAdmin on the fly?
You need a package bundled with all these tools,  xampp shall meet you needs, you can download it here
(windows/mac/linux/Solaris supported):
http://sourceforge.net/projects/xampp/files/
1. I meet the php page error:
strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier.
You can
explicitly set it in any of the following ways:
a.The date.timezone setting in php.ini
b.At runtime with date_default_timezone_set()
c. Setting the TZ variable in Apache's environment (in
httpd.conf, .htaccess, or a few other ways)
solve a: uncomment the date.timezone line, and set the timezone to your desired,
such as 'Europe/Berlin' or 'Asia/Shanghai'
   [Date]
   ; Defines the default timezone used by the date functions
   date.timezone = Asia/Shanghai
2. apache\logs\error.log shows "Bad file descriptor: don't know how to spawn child process" like :
[Mon Jan 25 16:59:59 2010] [error] [client 127.0.0.1] D:/XXXServer/trend/coretech/abc.html is not executable; ensure interpreted scripts have "#!" first line
[Mon Jan 25 16:59:59 2010] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: D:/XXXServer/trend/coretech/abc.html
[Mon Jan 25 18:17:49 2010] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: D:/mywebapp/img/left-content-header.css, referer: http://127.0.0.1/mywebapp/navigation.php
solution: some version of Apache/2.2.14 (Win32) doesn't process read only files properly, 
you can solve


相关文档:

PHP整合FCKeditor


声明,我用的PHP框架是CI(codeignitor),但其实因为是用JS调用FCKeditor的,所以这个和框架没有关系
首先下载FCKeditor 2.6.3 (我使用的是这个版本)
可以在CSDN中下载
解压,将FCKeditor2.6.3下面的fckeditor整个文件夹复制到网站根目录(和index.php)同一个目录,并更名为fck(不改名也行,但后面设置根路径的时候 ......

我的PHP最佳编程工具是phpcn5.0

我从事了6年多的编程工作,在这之前做了将近2年的纯HTML+CSS的网页制作和设计。本博客很多次提到的phpcn5.0,是一款简洁实用的文本工具。对于PHP编程有十分好的支持,几乎到了完美。我的PHP首选编程工具是phpcn5.0,使用phpcn5.0做PHP编程,几乎不用再用其它的文本工具。对于PHP编程,phpcn5.0有这些优点:
   1 ......

你可以喜欢PHP,但是你不能撒谎!

最近我真是头大矣,我的博客里居然一夜间变成了php和asp的斗争场,甚至变成了windows和linux的斗争场。真是意想不到的。
我本来无意挑起windows和linux之间的争端,而且也非常不想去挑这种争端。
话说,其实我本身对linux操作系统是没有什么坏印象的,虽然自己的电脑上没有装过linux,但是在同学的电脑上用过,觉得它挺好 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号