1. 95300

    echo(), print(),print_r()区别在于 echo 可以输出多个变量值,而print只有一个变量,做为一个字符串输出. echo 没有返回值, print有返回值1. print不能输出数组和对象。print_r 可以输出stirng、int、float、array、object等,输出array时会用结构表示,print_r输出成功时返回true; 而且print_r可以通过print_r($str,true)来使print_r不输出而返回 p ...

    阅读全文
  2. PHP缓存技术2013-09-27

    PHP缓存技术  PHP缓存包括PHP编译缓存和PHP数据缓存两种。PHP是一种解释型语言,属于边编译边运行的那种。这种运行模式的优点是程序修改很方便,但是运行效率却很低下。PHP编译缓存针对这种情况做改进处理,使得PHP语言只要运行一次,就可以把程序的编译结果缓存起来。  简介 PHP缓存包括PHP编译缓存和PHP数据缓存两种。PHP是一种解释型语言,属于边编译边运行的那种。这种运行模式的优点是程序修改很方便,但是运行效率却很低下。PHP编译缓存针对这种情 ...

    阅读全文
  3. 下载ECLIPSE-PHP 使用ECLIPSE创建PHP PROJECT,带来全新的PHP PROJECT 架构理念 查询PHAR相关知识 http://www.ibm.com/developerworks/cn/opensource/os-php-5.3new4/ http://www.php.net/manual/zh/wrappers.phar.php Eclipse PHP 用eclipse开发php 参考文档: http://blog.csdn. ...

    阅读全文
  4. 88740

    这里是PHP String基本函数。不同于mbstring. (multibyte Character) 多字节字符串的处理函数需要enable mbstring,多字节字符串函数不是默认安装的。 PHP Manual 函数参考 文本处理 字符串 字符串函数 addcslashes addslashes bin2hex chop chr chunk_split convert_cyr_string convert_uudeco ...

    阅读全文
  5. 83490

    Mon Oct 21 2013 17:27:21 GMT+0800 (中国标准时间) Predefined Interfaces and classes     Interface Traversable   ArrayAccess   Serializable Classes Ite ...

    阅读全文
  6. 87080

    SPL - Standard PHP Library 标准PHP类库 spl_ 标准PHP类库的函数 ob_  output buffering 函数系列, 参考Output Control Functions ...

    阅读全文
  7. 94670

    Affecting PHP's Behaviour Audio Formats Manipulation Authentication Services Command Line Specific Extensions Compression and Archive Extensions Credit Card Processing Cryptography Extensions Database Extensions Date and Time R ...

    阅读全文
  8.  通过关闭一些不必要的功能来实现优化。 方法就是设置disable_functions 比如关闭以下功能: disable_functions=exec, system, passthru,error_log,ini_alter,dl,openlog,syslog, readlink,symlink,link,leak,fsockopen,proc_open, popepassthru,chroot,scandir, chgrp,chown, escapeshellcmd, es ...

    阅读全文
  9. 在 Unix 平台下安装 PHP 有几种方法:使用配置和编译过程,或是使用各种预编译的包。 本文是在Linux下面自编译生成PHP的方法,主要参考官网提供的方法结合一些自身的情况: 从apache官网获取 Apache 源码包,然后解压: gzip -d httpd-2_x_NN.tar.gz tar -xf httpd-2_x_NN.tar 同样,获取 PHP 源码包并解压: gunzip php-NN.tar.gz tar -xf php- ...

    阅读全文
  10. PHP Fatal error:  Call to undefined function imagettftext() in 这个错误主要是因为在使用function imagettftext()时找不到定义的字体位置。简单的解决办法就是正确设置字体路径。PHP官方也有个提议就是将字体和script放置在相同路径。 “In many cases where a font resides in the same directory as the scri ...

    阅读全文
1234