PHP5 allows you to restrict access to class members. this is a new feature in PHP5, but it already exists in many object-oriented languages. with access, you can develop a reliable Object-oriented Application and build reusable object-oriented class
[Php100 exclusive Article] a long time ago, someone saw a bright highlight in the sky from www. It was the Java language. At the same time, a dreamer also saw a bright spot in another place, it is PHP.
As time passes, the two highlights become
PHP is still quite common, So I studied the PHP array sorting, and I will share it with you here, hoping it will be useful to you. After learning about usort custom sorting, let's take a look at sort (). This function is the originator of the
In
The PHP error_log () function is mainly used to write error logs. It is developed by many people or in a development project that is complex and has no unit test, you can use it to record errors in our program, especially errors in the execution
1. install php. We recommend that you use php 3.0.12 or a later version. However, Phorum can also work under 3.0.6, but there are some problems.Phorum has been tested under 3.0.12 and 4 beta 3.2. Install the database.Mysql version 3.22.x or later.
Installing PHP as Apache dso php often works with the Apache Web server on the Linux/Unix platform. When installing PHP in Apache, you have three installation modes available: static module, dynamic module (DSO), and CGI. I suggest you install PHP
This article proposes practical PHP optimization, buffering, and compression solutions.
As a popular Web programming language, the biggest advantage of PHP is speed. PHP4 is already doing very well in this regard, and you can hardly find a script
I. APC installation Configuration
Refer to my article
II. php. ini configuration item [APC] section details
[Apc]
; Alternative php cache for caching and optimizing php intermediate code
Apc. cache_by_default = on
; Sys
Whether to enable caching
PHP $ _ ENV variable
$ _ ENV is an array containing server environment variables. It is a super global variable in PHP. We can directly access it anywhere in the PHP program.
$ _ ENV only passively accepts server-side environment variables and
Php object-oriented _ get (), _ set () Usage
In general, the class attribute is always defined as private, which is more in line with the actual logic. However, attributes are read and assigned frequently. Therefore, in PHP5, we predefine the two
Let's first review empty and isset empty-check whether a variable is empty "", 0, "0", NULL, FALSE, array (), var $ var; objects without any attributes will be considered empty. If var is empty, TRUE isset is returned to check whether the variable
The php array is divided into array values and array keys. The following small series will summarize the common operations for array values in php: if you need to add values to the array, determine the values in the array, and delete specific array
1. What is an array?An array is a collection of data. It organizes a series of data to form an operable whole. Each object in the array contains two items: Key and value.Ii. Declare dataThere are two ways to declare arrays in PHP:First, apply the
Recently, I have been designing databases and sometimes cannot figure out the data types in SQL2000. So I picked this article.(1) char, varchar, text and nchar, nvarchar, ntextChar and varchar are both between 1 and 8000 characters in length. The
For an experienced
(1) PHP obtains POST data when the form POST method is submitted
$ _ POST and php: // input can get the value. $ HTTP_RAW_POST_DATA is empty.$ _ POST organizes submitted data in an associated array and performs encoding, such as
Before uploading ajax files, I used js ajax for the most frequently written files. Next I will introduce the implementation code of jQuerya ajax + php File Upload. If you have any need to know about it, please refer.
Real-time upload is required for
As we all know, the rename () function can rename files or directories. It can also do many things. Friends familiar with unix should know the shell command mv, which is equivalent to win32 movement, and can be renamed at the same time. everyone
Almost all Unix and Linux servers run the SSH server, which enables the administrator to securely and remotely visit the server. Unfortunately, recent attacks against SSH services are not common. This article will show you how to use the pam_abl
PHP is actually a module function of the Web server. Therefore, you must first ensure the security of the Web server. Of course, to ensure the security of Web servers, we must first ensure the system security, so that we can go far and never go. PHP
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