Recently simple use of the current domestic use of a number of major foreign PHP framework (excluding the domestic framework), roughly to these frameworks have an intuitive feeling, simple to share, for which to do frame selection, right when a
The Chinese translation of the session is called "conversation", its original meaning refers to the beginning and end of a series of actions/messages, such as phone calls from the pick up the telephone to hang up the phone in the middle of a series
Look at the manual found php_eol this variable, checked the information, the original is equivalent to a newline character
In the UNIX series with \ nIn Windows series with \ r \ nOn Mac with \ rPHP can be replaced with Php_eol to improve
1. Configure the components required to perform the task
Task configuration file:/protected/config/console.php
Configuration method is almost the same as configuring the main file [HTML]
The configuration for YIIC console application.
Any
Split it splits the string according to the given pattern, and it is quite handy to decompose the extracted fields with this operator for strings that separate different fields with tabs, colons, whitespace characters, or any symbol. As long as you
PHP 4-07 at the end of the PHP group will no longer support it, so in order to let people more confident transfer to the PHP 5 platform, I specifically did this test, to see if our PHP 4.x really performance than our PHP 5.x better! The test result
A netizen wrote to me about the calculation of salary in PHP. I've talked about a method of calculating wages in a previous article, but Shang, using the tools of existing expressions, now that someone wants to, I'm going to give you an inverse
Although most PHP engineers do not need to know how PHP's C code core works, some people may know that there is a DL () function. Or the use of some third-party class libraries, which is one of the key points of this article.
Hopefully this
[PHP]
if (Isset ($_server[' path_info ')) {
$str =substr ($_server[' path_info '],0,strpos ($_server[' path_info '], '. '));
Get path information (pathinfo)
$pathinfo =explode ('/', trim ($str, '/'));
Get $_get[' m ']
$_get[' m ']= (!emptyempty
Phpize is belong to the Php-devel, the main thing is to set the PHP plug-in module settings
For example, your PHP does not support MySQL, mbstring, etc.
Example application:Environment php5.2.6, MySQL extension not supportedIf PHP's source code
Use for a long time fckeditor, look accustomed to its slightly old interface, heard that his younger brother CKEditor more cool more dazzling, today to try it. The current version is CKEditor 3.4.2.
CKEditor is completely based on plug-ins, and it
Because of the version update, these files have a new name: I used 5.4.
Php.ini-production corresponds to php.ini-recommended
Php.ini-development corresponds to Php.ini-dist
The other steps are still the same, the configuration file is still to be
paip.php Debug Debug---coexistence with optimizer
Author author Attilax,
Note: 1, after decompression Zenddebugger, the directory of 4_3_x_comp, 4_4_x_comp, 5_2_x_comp and other directories, respectively, changed to the php-x.y.z format directory
paip.php page Debug Setup and process
Author author Attilax I'm using Eclipse for PHP developers V3.0.2, with Eclipse in the v3.7.2 indigo,with Zend Debugger v5.2.15, Copyright
Project Right-click >php Debug>win (Properties for xxxx) >> "enbalble
First, directory operations
The first is the function that reads from the directory, Opendir (), Readdir (), Closedir (), which is used when the file handle is opened, and then the iteration is listed:
$base _dir= "filelist/";
$fso =opendir
PHP and Web pages use UTF-8 encoding, the database is SQL server2008, using the default encoding (936, which is GBK encoding)
When reading the database data, use PHP's own json_encode () to return to the front end, the result Chinese is not
To facilitate the use of PHP's session, I have rewritten a simple session method here.
Create a new application/libraries/sessions.php with the following content:
01
02if (!defined (' BasePath ')) exit (' No Direct script access allowed ');03 04/**
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service