
PHP
ColorPaper
游侠
展开
-
x-www-form-urlencoded与multipart/form-data区别
application/x-www-form-urlencoded 与 multipart/form-data 的区别Submitted by ryan on Mon, 09/20/2010 - 00:25在Flex中,UrlRequest中的contentType默认值为 application/x-www-form-urlencoded。而对于 FileRefe转载 2016-01-29 10:51:10 · 1251 阅读 · 0 评论 -
Eclipse开发PHP调试(debug)环境配置
最近用PHP开发,不能调试很郁闷,再网上找了一篇搭建环境的文章,里面有些已经过时了,并且其中很多细节没有提到,对于像我这样的菜鸟来说比较困难,特在此写一篇我自己安装过程中,希望能帮助到大家。参考文章链接:http://www.2cto.com/kf/201111/111881.html我最终选用的版本如下 APACHE : httpd-2.2.21-win32-x86-转载 2012-07-07 18:05:41 · 1048 阅读 · 0 评论 -
pear
为了创建一个类似于Perl CPAN档案的工具,Stig S. Bakken创立了PEAR项目。一、什么是PEAR?为什么需要它?简介 PEAR是PHP扩展与应用库(the PHP Extension and Application Repository)的缩写。它是一个PHP扩展及应用的一个代码仓库,简单地说,PEAR之于PHP就像是CPAN(Comprehensive P转载 2012-07-07 17:47:39 · 1119 阅读 · 0 评论 -
Installing PDO_MYSQL on CentOS (the easy way)
When deploying LAMP projects, quite often we find ourselves being given access to a newly installed server with distribution-specific default configurations, which are usually very stripped down. Our转载 2012-07-07 00:09:40 · 621 阅读 · 0 评论 -
php记录日志
$ss_log_level = 0; $ss_log_filename = /tmp/ss-log; $ss_log_levels = array( NONE => 0, ERROR => 1, INFO => 2, DEBUG => 3 ); //设置日志级别 function ss_log_set_le转载 2012-04-23 15:30:57 · 737 阅读 · 0 评论 -
How to install a PHP PECL extension/module on Ubuntu
PHP PECL extensions provide additional functionality over the base PHP install. You can browse the PHP PECL extensions available at the PECL repository here. The following steps show how to instal转载 2011-10-25 18:20:23 · 1337 阅读 · 0 评论 -
How to use the PECL HTTP (PECL_HTTP) Extension to make HTTP requests from PHP
源自:http://www.mkfoster.com/2009/01/04/how-to-use-the-pecl-http-pecl_http-extension-to-make-http-requests-from-php/PECL HTTP is a feature-rich PHP extension that allows you to make HTTP and转载 2011-10-25 18:21:48 · 1127 阅读 · 0 评论 -
curl_error
curl_error(PHP 4 >= 4.0.3, PHP 5)curl_error — Return a string containing the last error for the current sessionReport a bug转载 2011-08-21 19:43:19 · 670 阅读 · 0 评论 -
curl_errno
curl_errno(PHP 4 >= 4.0.3, PHP 5)curl_errno — Return the last error numberReport a bug Descriptionint curl_errno ( resou转载 2011-08-21 19:42:34 · 720 阅读 · 0 评论 -
curl_close
curl_close(PHP 4 >= 4.0.2, PHP 5)curl_close — Close a cURL sessionReport a bug Descriptionvoid curl_close ( resource $ch转载 2011-08-21 19:41:34 · 611 阅读 · 0 评论 -
curl_exec
curl_exec(PHP 4 >= 4.0.2, PHP 5)curl_exec — Perform a cURL sessionReport a bug Descriptionmixed curl_exec ( resource $ch转载 2011-08-21 19:40:34 · 809 阅读 · 0 评论 -
php curl
IntroductionPHP supports libcurl, a library created by Daniel Stenberg, that allows you to connect and communicate to many different types转载 2011-08-21 19:32:55 · 503 阅读 · 0 评论 -
urldecode
urldecode(PHP 4, PHP 5)urldecode — Decodes URL-encoded stringReport a bug Descriptionstring urldecode ( string $str )D转载 2011-08-21 19:54:09 · 848 阅读 · 0 评论 -
urlencode
urlencode(PHP 4, PHP 5)urlencode — URL-encodes stringReport a bug Descriptionstring urlencode ( string $str )This func转载 2011-08-21 19:52:50 · 771 阅读 · 0 评论 -
$_SERVER
$_SERVER$HTTP_SERVER_VARS [deprecated](PHP 4 >= 4.1.0, PHP 5)$_SERVER -- $HTTP_SERVER_VARS [deprecated] — Server and execution envir转载 2011-08-21 19:47:57 · 612 阅读 · 0 评论 -
curl_setopt
curl_setopt(PHP 4 >= 4.0.2, PHP 5)curl_setopt — Set an option for a cURL transferReport a bug Descriptionbool curl_setop转载 2011-08-21 19:38:44 · 1258 阅读 · 0 评论 -
curl_init函数
curl_init(PHP 4 >= 4.0.2, PHP 5)curl_init — Initialize a cURL sessionReport a bug Descriptionresource curl_init ([ strin转载 2011-08-21 19:34:41 · 627 阅读 · 0 评论 -
Zend Studio vs. PDT
Zend Studio vs. PDTZend Studio, the leading PHP Editor, is built on top of the Eclipse PDT (PHP Development Tools) project. Zend Studio provides many benefits over PDT, including faster PHP develo转载 2012-07-07 18:35:23 · 929 阅读 · 0 评论 -
Zend Framework
Zend Framework (简写ZF)是由 Zend 公司支持开发的完全基于 PHP5 的开源PHP开发框架,可用于开发 Web 程序和服务,ZF采用 MVC(Model–View-Controller) 架构模式来分离应用程序中不同的部分方便程序的开发和维护。Zend Framework (ZF) is an open source, object-oriented转载 2012-07-07 18:27:32 · 737 阅读 · 0 评论 -
PDO简介
IntroductionThe PHP Data Objects (PDO) extension defines a lightweight, consistent interface for accessing databases in PHP. Each database driver that implements the PDO interface can expose databas转载 2012-10-02 19:14:59 · 758 阅读 · 0 评论 -
Expressions
ExpressionsExpressions are the most important building stones of PHP. In PHP, almost anything you write is an expression. The simplest yet most accurate way to define an expression is "anything that转载 2012-09-06 21:01:06 · 635 阅读 · 0 评论 -
Error Control Operators @
Error Control OperatorsPHP supports one error control operator: the at sign (@). When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored转载 2012-09-06 20:56:44 · 575 阅读 · 0 评论 -
Model View Controller(MVC) in PHP
The model view controller pattern is the most used pattern for today’s world web applications. It has been used for the first time in Smalltalk and then adopted and popularized by Java. At present the转载 2012-08-27 20:06:21 · 1392 阅读 · 0 评论 -
What are the Three Layers of Web Development?
What are the Three Layers of Web Development?Content or StructureThe content or structure layer is what your readers are coming to get when they come to your Web page. Content can consist of tex转载 2012-09-02 18:41:33 · 1157 阅读 · 0 评论 -
php的static关键字
Static KeywordTip This page describes the use of the static keyword to define static methods and properties.static can also be used to define static variables and for late转载 2012-08-29 20:56:36 · 629 阅读 · 0 评论 -
php的常量定义:const VS define
As of PHP 5.3 there are two ways to define constants: Either using the const keyword or using the define() function:const FOO = 'BAR'; define('FOO', 'BAR'); The fundamental difference betwee转载 2012-08-28 20:35:16 · 687 阅读 · 0 评论 -
php引用传递
Passing by Reference You can pass a variable by reference to a function so the function can modify the variable. The syntax is as follows: function foo(&$var){ $var++;}$转载 2012-08-28 20:20:57 · 549 阅读 · 0 评论 -
php函数返回引用
Returning References Returning by reference is useful when you want to use a function to find to which variable a reference should be bound. Do not use return-by-reference to increase perf转载 2012-08-28 20:12:41 · 529 阅读 · 0 评论 -
include_path
include_pathstringSpecifies a list of directories where the require,include,fopen(),file(),readfile() andfile_get_contents() functions look for files. The format is like the system's转载 2012-07-09 19:47:06 · 555 阅读 · 0 评论 -
phpBB
phpBB是一个论坛软件,使用PHP语言开发的并开放其原始码。是模块化设计,具专业性、安全性高、支持多国语系、支持多种数据库和自定义的版面设计等优越性能,而且功能强大。自2000年发布以来, phpBB™ 已经成为世界上应用最广泛的开源论坛软件. 与早先的版本一样, phpBB™ 3.0 “Olympus” 拥有易于使用的管理面板和友好的用户安装界面, 您可以轻松地在数分钟内建立起转载 2012-06-22 16:05:42 · 994 阅读 · 0 评论 -
配置phpMyAdmin 登陆时提示:“缺少 mysqli 扩展。请检查 PHP 配置
配置phpMyAdmin 登陆时提示:“缺少 mysqli 扩展。请检查 PHP 配置我用的是CentOS 6.0 +php5.3+mysql5.1+ phpMyAdmin-3.4.7.1-all-languages.ziphttp://nchc.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.4.9/phpMyAdmin-3.4.转载 2012-07-07 08:11:17 · 1711 阅读 · 2 评论 -
PECL
What is PECL?The PHP Extension LibraryPECLis a repository for PHP Extensions, providing a directory of all knownextensions and hosting facilities for downloading and development of PHPexte转载 2012-07-07 17:40:52 · 725 阅读 · 0 评论 -
启动和停止MySQL服务
启动和停止MySQL服务1. 启动MySQL服务启动MySQL服务的命令为:/etc/init.d/mysqld start命令执行后如图7-5所示,表示启动MySQL服务成功。 (点击查看大图)图7-5 启动MySQL服务也可以用/etc/init.d/mysqld的简化命令启动MyS转载 2012-07-07 08:11:58 · 715 阅读 · 0 评论 -
Compiling shared PECL extensions with phpize
from:http://php.net/manual/en/install.pecl.phpize.phpCompiling shared PECL extensions with phpizeSometimes, using the pecl installer is not an option. This could be because you're behind a转载 2012-07-07 00:27:32 · 646 阅读 · 0 评论 -
Zend Studio
Zend Studio is the only Integrated Development Environment (PHP IDE) available for professional developers providing the capabilities needed to develop business applications. Features like refactoring转载 2012-07-07 18:31:21 · 560 阅读 · 0 评论 -
Where a configuration setting may be set
Where a configuration setting may be setThese modes determine when and where a PHP directive may or may not be set, and each directive wit转载 2011-09-14 16:36:34 · 573 阅读 · 0 评论 -
header函数
Descriptionvoid header ( string $string [, bool $replace = true [, int $http_response_code ]] )header() is used to send a raw HTTP转载 2011-08-17 13:45:13 · 698 阅读 · 0 评论 -
realpath函数的用法
realpath(PHP 4, PHP 5)realpath — Returns canonicalized absolute pathnameReport a bug Descriptionstring realpath ( string转载 2011-08-04 20:19:14 · 6684 阅读 · 0 评论 -
array_map的使用方法
array_map(PHP 4 >= 4.0.6, PHP 5)array_map — Applies the callback to the elements of the given arraysReport a bug Description转载 2011-08-04 20:13:09 · 949 阅读 · 0 评论 -
php图片处理类class.upload.php documentation
What does it do?It manages file uploads for you. In short, it manages the uploaded file, and allows you to do whatever you want with the转载 2011-08-05 08:49:36 · 1050 阅读 · 0 评论