PHP has undergone a dramatic change last year. Everyone seems to have an idea of what a good frame should look like, but then again, there are not many areas of product type that the framework or framework ultimately actually uses in different
1. Installation of Msgpack, Yar, yaf three PHP extensions
2, compile Yar, use./configure--enable-msgpack--with-php-config=/usr/local/php/bin/pgp-config parameters,-- The Enable-msgpack parameter is to turn on packager support for Yar
3, Php-i|grep
Recently in the study of the YII framework of PHP, like, encountered the problem of exporting Excel, studied, there is the following method:
1, first add a reference to the Phpexcel in config\main.php, my way Is this:
12345678
//
PHP header after the need to write exit to terminate the program, has not been too concerned about, today encountered a bug, only to find that this is still a problem, deliberately wrote a piece of code test, the code is as follows:
The result
This article mainly shares the knowledge of PHP data type conversion.
PHP's data type conversions are cast, and the PHP data types that are allowed to be converted are:
(int), (integer): Convert to Reshape(float), (double), (real): Convert to
PHP string processing function Summary, these are the system comes with the PHP string processing function.
Addcslashes-adds a backslash escape character for some characters inside a stringaddslashes-characters inside a string are escaped in the
Use PHP to get QQ Avatar two ways to share.
Method One:
Method Two:
The difference between the two methods:The advantage of method one is that you can output the original picture of the Avatar, if your avatar is animated GIF, then the output is
The following are some of the experiences that we end up with when we develop a project at Shun Yi Network.
When rendering the page output.
1.render outputs the contents of the parent template, and embeds the rendered content into the parent
Practice out the truth, write a simple file PHP file include a JS file, after executing no error or warning message, while seeing the content of the file containing JS is printed out. Therefore, it concludes that the include target file can be any
Yii's own query Builder is still very useful, eliminating the process of spelling SQL, today when writing a statement encountered such a problem
Copy the Code code as follows:$connection = Yii::app ()->db;$command = $connection->createcommand
As described in the Yii documentation, the general process in which yii processes the form is:
Create a model class corresponding to the form, set field validation rulesCreate a form to submit the corresponding action to process the submitted
Have you ever thought: To compress the JS file, convert the JS file into a PNG image, and then use the Getimagedata () function in the canvas control to re-read the image into a JS file. I published here yesterday in the JS file fast loading of the
For a long time did not use Smarty to do projects, and today suddenly to change their own website inside some things, because my site is a long time ago with smarty template engine do, change some places on the feeling still have to search the
The following are ourShun Yi Network
Some of the experience of the company's development project
We can use renderpartial to access some of the view files stored in the Views folder of different controllers.
In Yii1.1.3, we use the double slash "//"
Both the Execute () and the query () methods in thinkphp can enter SQL statements directly into the parameters. The difference is that execute () is typically used to execute SQL statements such as INSERT or update, and query is commonly used to
About memcached and memcached How to use, here is not said, the reader can refer to this site's articles:
What is memcached? Memcache What should I use?
This article focuses on how to install and configure the Memcached service in a Windows
What is full text search?
Full text retrieval is a kind of information retrieval technology which takes all the textual information of the document as the retrieval object. The retrieved object may be the title of the article, or it may be the
PHP deletes the file and directory functions, deleting a directory, including its contents. Use PHP custom functions to specify the path.
PHP Deletes directories and contents, function code, as follows, such as deleting the contents of/temp:
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