The first time you use Phpstorm development, various configurations make development easier.
Xdebug Installation
First step: Open the xdubug extension in php.ini
[xdebug]xdebug.profiler_append = 0xdebug.profiler_enable =
SaveXML () function: Place an internal XML document into a string;
For Example:
"test.xml"
note>to>Tove
to>from>Jani
from>heading>Reminder
heading>body>Don't forget me this Weekend!
body>
note
').
1. PHP iconv Extension: interface for handling character set conversions.
System view installed Iconv extension contains character encoding set: Iconv-l
Functions that the extension module contains:
Iconv_get_encoding ()//Get ICONV internal
Character Set: is a description of the graphics or text used in the transmission of the encoding called the
character set.
The relationship between graphics or text and coding:
It's like this:
"Word" =>10010001 110000111
Encoding of the
Please support: http://www.webyang.net/Html/web/article_180.html
Redis is a high-performance Key-value database. The emergence of Redis, in some cases can be a good complement to the relational database. On the other hand, in the session storage,
When I recently worked on a project, I needed to merge two arrays that were read from the database, so I thought of the Array_merge function in PHP, and the final result was always null, and by dump, it was discovered that one of the arrays was null.
Before applying, make sure you have composer installed.
Installation procedure, you can refer to http://docs.phpcomposer.com/00-intro.html
1) Configure the Composer.json file
To start using Composer in your project, you only need a Composer.json
Assignment Object Methods
HTML tag notation {$ object Name, property name/Method name ()} is generally less used
Temp3{$man->name}{$man->say ()}
Name;}} $man = new Man (); require ('.. /.. /smarty3/libs/smarty.class.php '); require
recently moved the original handwritten profile of the project to the management background for easy configuration by others, the process used the Var_export function.
Summarize:
1, according to the official note, Var_export must return the
Uploading FilesExample
First build a form that can upload files
html>body>formaction="upload.php"method="post"enctype="multipart/form-data">inputtype="file"name="file"/>inputtype="submit"value="submit"name="submit">
form>
body>
I downloaded a php program called NetBeans, and I got a warning when I entered the usual ones
$name = $_GET['name']; :
请不要直接访问超全局$_GET数组 请改用某些过滤函数(例如filter_input() ,带有is_*()函数的条件等) . I just understand that my usual practice is not standard. In
Mamp PHP with is 5.5.26, compile memcache module need to use PHP source code, Mamp not bring, to the PHP website next php-5.5.26.tar.gz,
After decompression, generate Zend_config.h Backup
TAR-ZXVF php-5.5.26.tar.gzcd php-5.5. - . /configure
If
A brief introduction to several tips for using Phalcon queries
1. Use Find, and in to query, as follows:
$orderIdList = Array_unique (Array_map (' intval ', $orderIdList)), if ($orderIdList) {$orderList = Childorder::find ([' Conditions ' + '
If you want to understand Yii2, be sure to understand the inheritance relationship of YII2 to related classes. Due to the limited amount of code that is temporarily read, only a partial inheritance is listed in the following figure, and then the
Easy to install software in the APT mode under Ubuntu and Debain, especially for novice install and uninstall Nginx.
Because Nginx cannot add modules dynamically, it is often installed and uninstalled and upgraded.
Install Nginx under Ubuntu to
There are several different points of the main:
1. Return returns the function value, which is the keyword; exit is a function.
2. Return is a language level that represents the return of the call stack, and exit is the system call level, which
0. It is quicker to use single quotes instead of double quotes to contain strings. Because PHP will search for variables in a string surrounded by double quotes, single quotes will not, note: only echo can do this, it is a string can be used as a
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