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

php配置文件解析 深未来

PHP]
;;;;;;;;;;;
; WARNING ;
;;;;;;;;;;;
; This is the default settings file for new PHPinstallations.
; By default, PHP installs itself with a configuration suitablefor
; development purposes, and *NOT* for production purposes.
; For several security-oriented considerations that should betaken
; before going online with your site, please consultphp.ini-recommended
; and http://php.net/manual/en/security.php.
;;;;;;;;;;;;;;;;;;;
; About php.ini   ;
;;;;;;;;;;;;;;;;;;;
; This file controls many aspects of PHP'sbehavior.  In order for PHP to
; read it, it must be named 'php.ini'.  PHP looksfor it in the current
; working directory, in the path designated by the environmentvariable
; PHPRC, and in the path that was defined in compile time (in thatorder).
; Under Windows, the compile-time path is the Windowsdirectory.  The
; path in which the php.ini file is looked for can be overriddenusing
; the -c argument in command line mode.
;
; The syntax of the file is extremely simple. Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probablyguessed).
; Section headers (e.g. [Foo]) are also silently ignored, eventhough
; they might mean something in the future.
;
; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different fromFOO=bar.
;
; The value can be a string, a number, a PHP constant (e.g. E_ALLor M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) oran expression
; (e.g. E_ALL & ~E_NOTICE), or a quoted string("foo").
;在ini文件本身使用的逻辑值使用的运算符
; Expressions in the INI file are limited to bitwise operators andparentheses:
;|       bitwise OR
;&       bitwise AND
;~       bitwise NOT
;!       boolean NOT
;
; Boolean fla


相关文档:

PHP将秒转化成小时和分(格式为 ** 小时 ** 分)

/* Author: 杨宇 <yangyu@sina.cn>  */
//将秒(非时间戳)转化成 ** 小时 ** 分
function sec2time($sec){
 $sec = round($sec/60);
 if ($sec >= 60){
  $hour = floor($sec/60);
  $min = $sec%60;
  $res = $hour.' 小时 ';
  $min != ......

php 目录和文件操作

<?php
//新建目录
mkdir("/path/to/my/dir", 0700); //0700表示权限最大
//删除目录
rmdir("/path/to/my/dir");
//遍历目录
$p =dir(/etc/php5);
echo "handler:".$p->handler;
while(false!=$entry=$p->read()){
    echo $entry."\n" ;
}
$p->close();
//输出文件内容
$handle=@ ......

linux 64bit _ php 添加 tidy 支持 _ 笔记

# 安装tidy
yum install tidy libtidy-devel
# 给php添加tidy模块
wget http://pecl.php.net/get/tidy-1.2.tgz
tar -xvzf tidy-1.2.tgz
cd tidy-1.2
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config --libdir=/usr/lib64
make
make install
echo "extension="tidy.so"" ......

jquery php ajax

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> TEST </title>
<meta name="generator" content="editplus" /> ......

重新审视 PHP 框架 CodeIgniter VS Zend

作者:Ekerete
翻译:Emeric Li (http://lee.kometo.com/index.php/archives/117
)
原文:http://www.avnetlabs.com/php/php ... r-vs-zend-framework
我们计划从头开始一个新项目,为此评估了一些PHP框架。我们的备选列表有CakePHP , CodeIgniter , Symfony和Zend 。 我们分别使用这4种框架编写了一个相同的小应用( ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号