1. Check that the mod_ssl module is installed.
My machine is centos and the system. Run the following command:
Yum install-y mod_ssl
2. Use openssl tools to Generate Keys, certificate request files, and certificates
Run the following command in
Remember that json_encode returns a string, while json_decode returns an object.
Determine that the data is not in JSON format:
Copy codeThe Code is as follows:Function is_not_json ($ str ){Return is_null (json_decode ($ str ));}
Determine that
As PHP changes from a simple scripting language to a mature programming language, the complexity of a typical PHP application code library increases. To control the support and maintenance of these applications, we can use various testing tools to
The date ("Y-m-d H: I: s") is always not the same as the actual time. So I found the relevant information and found out the reason. Cause of this phenomenon: From php5.1.0, the date. timezone option is added to php. ini, Which is disabled by default,
The following summarizes the optimization habits that can be done in 18 php code writing to maximize the speed of php code execution!
(1) The static method is four times faster than the normal method.(2) echo output is faster than print(3) Use the
Recently, I have simply used several mainstream foreign PHP frameworks (excluding domestic frameworks) that are currently used in China. I have a rough idea about these frameworks. I would like to share them with you briefly, when selecting
ThinkPHP uses modules and operations for execution. First, a user's request generates an application instance through the entry file. The application controller (called the core controller) manages the entire user execution process, it is also
Link: http://gihyo.jp/dev/feature/01/memcached/0004
Here is the link to this series of articles:
1st times: http://www.phpchina.com/html/29/n-35329.html
2nd times: http://www.phpchina.com/html/30/n-35330.html
3rd Times:
. Today is the last day in this company. The mood is not good.Therefore, the general practice of a large station is to use memory as a database (Memcached). And a good backup mechanism for read/write separation (mysql Master/Slave)In this
RSS, also known as Really Simple Syndication or RDF Site Summary, is a file format that allows Web sites to publish and aggregate the latest content to users. The RSS feed is represented in XML. The result is that it can be read by any client that
Introduction: when designing a blog site, it is sometimes necessary to publish an article on Weibo at the time of publishing. This article describes how to implement this function.
PreparationsAs a developer of Sina Weibo, the developer
1. Download the corresponding DLL2. Place the file in the ext folder under the PHP installation directory.3. Modify php. iniCopy codeThe Code is as follows:[Xdebug]Zend_extension = "./ext/php_xdebug-2.2.3-5.3-vc9-nts.dll"The following are parameters:
This article describes how to query mssql database garbled by thinkphp3. If you need it, referThinkphp query mssql database garbled reason is ThinkPHP default for UTF-8, and msmsql database is a Simplified Chinese version, the storage is GB2312
Php generates short URLsPrinciple:1. Perform crc32 verification on the original website to obtain the verification code.2. Use sprintf ('% U') to convert the verification code to an unsigned number.3. Perform the remainder 62 operation on the
The server generally has two types of thumbnails:1. generated during File UploadAdvantage: the required thumbnails have been generated during the upload, and no judgment is required during reading, reducing the cpu operation.Disadvantage: When the
This article describes how to apply a PHP script to correct the Linux or Unix system password. Required Tools and installation: you must install the following tools and software:-Fixed how to apply the PHP script to correct the Linux or Unix system
Note that grantallprivilege cannot grant the "grant" permission to the user. if you want to add the permission, you can directly apply usemysql in mysql; updateusersetGrant_priv = 'y' to achieve the request. Method 1:
If you try to use the MySQL
Generally, PHP, as a web processing language, must be compiled into an Apache Module. of course, this is not the case here. it is also very simple to compile, as long as the following actions are performed as root.
Install PHP performance
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