A server that compiles PHP without setting parameters, resulting in the lack of zlib extensions, unable to perform decompression, the error message is: "Fatal error:call to undefined function Gzopen".
First to find the original compiled PHP
sometimes we need to get the parameters that the function needs to pass in, and we can use the reflection function of PHP to get it, or all the open methods inside the class.
1. Get function parameter name:
function Getfucntionparametername
Today in writing a script, statistics a pure English text document TXT, inside the number of words appear, the code is as follows:
After the run, there is a situation in which a word is changed after another word, and the two words are judged to be
foreach traversal arrays are common, and foreach can also traverse objects
Do the following tests:
Class I
{public
$a = ' a ';
protected $b = ' B ';
Private $c = ' C ';
Private $data = Array (' Fantasy ', ' windows ', ' Linux ');
Internal
This article explains the PHP Implementation Timer task (timer)
Timer task, in the Web application is more common, how to use PHP to implement the timer task, there are roughly two scenarios: 1 Use the crontab command, write a shell script, in the
Taking www.verycd.com as an example
Login wuming88888888 account in Firefox browser for sending party
Login to wuming1990 account as receiver in Chrome browser
Analyze the sender's form
Analyze the data from the submit page source code post
' 1
PHP implements the retrieval application by invoking the Lucene library. Note Add the path path for the Php,tomcat,java,apache installed below.
The retrieved data is stored in the MySQL database, the retrieved data is crawled from the network using
Use the Yum installed PHP-FPM, always throw the wrong time:
Connect () failed (111:connection refused) while connecting to upstream, client:127.0.0.1, Server:localhost
Appears to be nginx not even to PHP-FPM, find to find out, found is the problem
In the use of MySQL often need to do like query, when the storage media switch to MONGO, we also need to use this situation, thanks to MONGO provide regular expression operation, we can use it to
Python blur Query
def query (): conn = Connection ('
To agree on several directories/usr/local/php/sbin/php-fpm/usr/local/php/etc/php-fpm.conf/usr/local/php/etc/php.ini one, php-fpm start parameters # Test PHP-FPM
PHP to the MySQL database to insert data to escape including two aspects, the first need to add data through data escaping to write the data into the storage, the second in the data displayed on the page need to restore the data to the original
Hadoop and hive
Hadoop is an open-source map-reduce implementation that allows it to perform operations on big data. Facebook uses this for data analysis (and we all know that Facebook already has a large amount of data ). Hive is originated from
PHP uses XMLHTTP by default using the Utf-8 character set, and we use the gb2312 character set, which requires us to transcode gb2312 to the Utf-8.
PHP provides an optional code module that can convert multiple character sets. The method for loading
ArticleDirectory
I. php benchmark Implementation ideas
2. Help analysis and viewing of webpage client scripts
Iii. Installation Process
I. php benchmark Implementation ideas
In the process of viewing redis slow query log
I spent two weeks investigating some of the current debugging methods of PHP. Many knowledge points may be relatively basic and the content is a bit lengthy. I 'd like to pick what I want to read. The things are relatively basic, please give your
First, enable the mcrypt software to run, then install the PHP extension module and configure it in PHP. ini.
The mcrypt software depends on the libmcrypt and mhash libraries, so the installation configuration sequence is from right to left.
I
We use the MVC framework, such as ci, yii, and CakePHP. One of the reasons is that the code can be easily maintained.
However, when the business logic is constantly complicated, the method in calling the model in the Controller will become
Check_file_case -- strictly check the case in windows.
/* Project Settings */'App _ debug' => false, // whether to enable the debugging mode'App _ domain_deploy '=> false, // whether to deploy the project with an independent domain name'App _ plugin_
The following are the ten most popular PHP frameworks based on MVC design patterns.
1. Yii
Yii is a component-based high-performance PHP framework for developing large-scale Web applications. Yii is written in strict OOP mode and has complete
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