Test and analysis of the speed of extracting core function from PHP data acquisition
As a result of the program needs, the PHP acquisition of character extraction in the core of the implementation of the speed test.
Three of the most common
Description
BOOL File_exists (String $filename)
Returns TRUE if the file or directory specified by filename is present, otherwise it returns FALSE.
In fact, PHP tutorial file_exists function and file_exists syntax we've already talked about it,
This example is under Wiondws XP
IIS5.1
php5.2.1 (Zip)
MySQL5.0.37
phpmyadmin2.10.0.2
ZendOptimizer-3.2.6
Installation and configuration of
installation of IIS
1 Install the Windows XP SP2 system installation CD in the optical drive
2 in Control
Copy Code code as follows:
# set $domain for your domain (note no www)
$domain = "Jb51.net";
# set URL, note no underline/
$docroot = "Http://jb51.net";
# Set the font for error messages
$fontface = "Verdana";
# Set the font size of 404
This example for you to share the PHP reflection api--using reflection technology to implement the plug-in system framework for your reference, the specific content as follows
hasmethod ($method)) {//check whether the specific method in the
Implementation content: Truncate a section of text containing HTML code, but there is no containment tag does not have a closed problem.
Description: This is the PHP version, used on the server side, if you need a client version, please read the
This article describes the implementation of PHP based on OpenSSL encryption and decryption method. Share to everyone for your reference, specific as follows:
Encryption and decryption by OpenSSL method
1. OpenSSL encryption Method:
First is the home page, which contains a text input and an IFRAME that displays the chat content, and a hidden IFrame is used to submit form forms:
Copy Code code as follows:
chat.php
Header (' cache-control:private ');
Header ('
The site often appears 502 Bad gateway, the program is no problem.
According to the Nginx log:
Copy Code code as follows:
Connect () to Unix:/var/run/php-fpm.sock failed (11:resource temporarily unavailable)
It was found that the
Super global variables in PHP start with PHP 4.2.0, register_globals default is off, so that many of the previous variables that can be used directly, such as $PHP _self or your set of Session variables cannot be accessed in the form of "$ variable
Using PHP+XSLT on the Windows platform
1. Download PHP 4.0.6 to Http://www.php.net
2. Unzip the Php-4.0.6-win32.zip to the c:\php
3. Configure PHP on the Web server
3. Copy the following four files under the DLLs directory to Windows\System (32)
What is a cookie
A cookie is a mechanism for storing data on a remote browser side to track and identify the user. Simply put, a cookie is a text file that the Web server temporarily stores on the user's hard disk and is then read by a Web browser.
The example in this article describes how PHP generates and obtains JSON files. Share to everyone for your reference, specific as follows:
First defines an array, then traverses the data table, puts the corresponding data into the array, and
This article analyzes the logging usage of errors and exceptions in PHP. Share to everyone for your reference, specific as follows:
Referring to the Nginx + PHP service error log, we usually think of Nginx access logs, error logs, and PHP error
Some time ago said that they encountered a "URL plus error" bug, the reason for this bug is that they use the UrlEncode function in the URL, the function will be converted to a plus space, which causes the URL parsing error, and the space only
This article analyzes the method of judging the negative value of PHP string operation. Share to everyone for your reference, specific as follows:
$a = '-1 ';
$b = (int) $a;
$c = Is_numeric ($a);
if ($a) {
echo 1;//echo 1
} else {
echo
Examples of common php regular functions and php instances
This example summarizes common php regular functions. We will share this with you for your reference. The details are as follows:
1. mixed preg_replace (mixed pattern, mixed replacement,
Error handling:1. Syntax error2. Runtime error3. Logical errorError report:Error: The E_ERROT program is interrupted and an error occurs.Warning the E_WARNING program will not be interrupted, but some functions may not be implemented.Note: E_NOTICE
Let's take a look at the ci preparation ..First, you need to change its default page.The default access is welcome. php. We have to change it to our own access page.In this case, the application --> config --> routes. php page$ Route ['default _
How to use sessionThe session_start () function must be called before session-related operations ();It is very easy to pay for the session, such:Program code The code is as follows:Copy code Session_start ();$ Name = "this is a Session example ";
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