A blank page in PHP programming can be caused by several reasons:
1. Logic Error
Logic errors are the hardest to rule out, and on the face of it, perhaps the code is legitimate and formal, but it is not expected to work. Why is it? Perhaps the
When you include a file with include or Requice, the file path is preceded by DirName (__file__). For example: Existing a.php, b.php, c.php, D.PHP4 files, their relationship is:
B.php (same level as root directory)Root directory/a.phpRoot directory/
/**
* Exception Handling for ㈠PHP5
*
* PHP 5 Adds an exception handling module similar to other languages. Exceptions generated in PHP code can be thrown
* Statements are thrown and captured by catch statements. The code that requires exception
1. Sys_getloadavg ()
SYS_GETLOADAVT () can obtain the system load condition. The function returns an array of three elements, each representing the average load for the system in the past 1, 5, and 15 minutes.
Instead of letting the server down
PHP regular expressions are primarily used for pattern segmentation, matching, finding, and substitution of strings. Using regular expressions can be inefficient in some simple environments, so how to better use PHP regular expressions requires a
Recent projects are not very large, so the time to compare the space, yesterday, thinking about writing something, think of a few days ago, the telecommunications company voted to choose a smile angel activities, vote is to fill in the verification
Recently wrote the English search for thieves, in order to let spiders better enjoy the fun of the link, so the use of storage processing, the recent search to write to MySQL, while the home page call these query data, you can reach the effect of
Installing PHP using the Yum install directly in CentOS is a relatively low version, if you need a higher version, see the following:
Step 1:installing Remi Repository
# # Install Remi & Epel Repository on Rhel/centos 6.4-6.0-32 Bit # # RPM-UVH
Syntax: Condition? Result 1: Result 2
Description: The position in front of the question mark is judged by the condition, if the condition is met when the result is 1, the result 2 is not satisfied.
The code is as follows
Using single quotes instead of double quotation marks to contain strings can be faster. 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
One
using HTTP header information
That is, using the header function of PHP. The function of the header function in PHP is to send the browser a control instruction that is supposed to pass through the Web server as specified by the HTTP protocol,
iis6+fastcgi PHP Run time-out problem resolution; There was an error during use the FastCGI process exceeded configured Request Timeout solution is as follows:
fastcgi configuration File "Fcgiext.ini", located under Directory
There are many PHP integrated development environments, such as XAMPP, Appserv ... Just one click to install the PHP environment to build. But this kind of installation method is not flexible, the free combination of software is inconvenient, but
In PHP to record the execution time of the code in the page we only use the Microtime function to generate the time, and then subtract the start and end time at the end to resolve.
Core code
The code is as follows
$t 1
Regular expressions are cumbersome, but powerful, and learn to give you an absolute sense of accomplishment in addition to improving your efficiency.At present, regular expression has been widely used in many software, including *nix (Linux, UNIX,
iphone is easy to use with Apple push, and many Android vendors have deleted Google push, and Google is not connected to the mainland, so there are other ways.
Android common push service providers are: Aurora push (https://www.jpush.cn/), Baidu
Recently the public platform is very hot, certainly a lot of companies like our company, to develop a public platform, here to record the production of custom menus encountered problems,
Hope to give some people some ideas, or a little detour.
In
Error: Configure:error:libevent >= 1.4.11 could not being found
Solution: Yum-y Install libevent Libevent-devel
Error: Configure:error:Please Reinstall the MySQL Distributio
Solution: Yum-y Install Mysql-devel
Error: Make: * * *
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