I've been working on PHP applications for the last four years. PHP is really easy to write. But PHP also has some very serious flaws.
Below I will give my reasons why PHP is not suitable for larger sites than small amateur websites.
1. Bad support
The most afraid of the problem with the unthinkable to fight, to see who cattle nose. Have not been in the code for a long time encountered obstacles, and today unexpectedly met a small tea bag--php generated XML, to flash access is garbled.
#运行用户
User Www-data;
#启动进程, usually set to equal number of CPUs
Worker_processes 1;
#全局错误日志及PID文件
Error_log/var/log/nginx/error.log;
Pid/var/run/nginx.pid;
#工作模式及连接数上限
Events {
Use Epoll; A way to #epoll是多路复用IO (I/O multiplexing), but only
PHP has four functions that contain files: include (), include_once (), require (), and require_once (). Figuring out their differences is one of the basics of learning PHP and avoids the unnecessary hassle of writing code.
include ()
1. Mode of
The 5 goals I have listed below have to be considered every time you start the web design.
In life, it is very important to have a goal.
Especially for website design, because there is no motivation without goals, more can not measure your
Let's look at some basic concepts first.
One, PHP script and dynamic page.
PHP script is a server-side scripting, can be embedded and other methods and HTML files mixed, but also class, function encapsulation, such as the form of templates to the
Introduction | speed | Perform Web content compression (make your customers more "cool")
Through the above two methods, I believe that your PHP application performance has been greatly improved, now the other aspect to consider: download speed. If
First, the working principle of Zendencode
People who use PHP know that it is a scripting tool, written by the program, must be in the form of the source code to be placed on the Web server, so we can not protect their own sources. And as you all
III. handling of regular expressions
Let's talk a little bit about regular expressions with ereg () and eregi () two functions. As I mentioned earlier, some of these functions are simple, and some are very complex, which depends on your actual
This article mainly introduces the Linux system recursive generation directory file MD5 method, using PHP script implementation, the need for friends can refer to the
Linux uses md5sum recursively to generate the entire directory MD5
Today to use
Tips | Another trick of scripting PHP is its ability to invoke methods of existing Java objects, which allows you to integrate PHP into existing java-based applications. If you are in your workplace to promote PHP, then you find a big blow to the
Mistakes when we write programs, no matter how cautious, mistakes are always unavoidable. These errors usually confuse the PHP compiler. If developers cannot understand the implications of compiler error messages, these are not only useless, but
One, PHP script code tagPHP script is a pair of special tags in the file included content, such as ASP is "", PHP can be seen as " ".
However, in order to accommodate XML standards to embed PHP in XML or XHTML, PHP does not recommend using short
Dynamic | page
WAP (Wireless Communication Protocol) is an open global standard for communication between digital mobile phones, personal handheld devices (PDAs, etc.) and computers. Because the static WAP page can not satisfy the user's
There are some problems with the old version of PHP itself, such as some serious bugs before php4.3.10 and php5.0.3, so it is recommended that you use the new version. In addition, the current busy SQL injection is also in PHP have a lot of ways to
mysql| Basic tutorial using cookies to track and identify users
Let's take a look at what's saved in the browser. If you are using IE5, there is a directory of cookies in the Windows directory, there are a lot of text files, the file name is
(reservation)
PHP has been for more than a year, from 3.0 to 4.0, can not say how high (I am now just a big rookie, compared to what, Hunte, much worse, of course, there are other masters), but also some experience. From the fiery PHP to the present
Apache|window Apache 2 and PHP are popular scenarios for creating interactive Web sites, and the cost is low. It's easy to install Apache 2 in Windows, but it takes a lot of skill to make PHP 4 work seamlessly with Apache 2.
In the Windows
This article describes how to use a PHP script to modify a Linux or Unix system password.
Required Tools and Installation: You must install the following tools and software:
– The shell script that modifies the password;
–sudo access rights;
The biggest advantage of using PHP for
1, code optimization Code optimization not only writes clean and clear code, but simplifies the code somewhat. You can use Zend Optimizer to help complete these miscellaneous tasks. Zend optimizer
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.