Author: darkness [bst]Msn: cqxy [at] 21cn.netAfter learning php2 for a month, I have gained a lot. but what is different from others is that I prefer socket. there are too few articles on socket in php. so I decided to write a series of php-socket
Source: http://www.pchoer.com/
PHP implements five basic operations on Text Databases: data display, addition, modification, deletion, and query.I used a message Book Program as an example to illustrate how PHP can display, add, modify, delete, and
I. Introduction If you know something about Unix/Linux, you should know that most of them come with C and C ++ compilers, GCC and G ++ respectively. Unix uses these compilers in many places such as program installation and Make. Using some Console
// Function name: CheckExtendName ($ C_filename, $ A_extend)// Usage: Determine the extension of the uploaded file// Parameter: $ C_filename: name of the uploaded file// $ A_extend required extension// Return value: Boolean// Standby Note: None//
// Function name: CheckTelephone ($ C_telephone)// Usage: determines whether the phone number is a legal phone number.// Parameter: $ C_telephone (phone number to be detected)// Return value: Boolean// Standby Note: None// Configure //---------------
Recently, I was very interested in PHP file processing, so I read many File Processing articles on many websites, however, most of the PHP file processing knowledge on many websites in China is that you copy my file, and most of the items searched
Randimage. php/*+ ----------------------------------------------------------- +| By Bleakwind http://www.weaverdream.com+ ----------------------------------------------------------- +*/$ Dir = "images/"; // image Directory, which is displayed by
1: Why can't I get the variable?Why can't I get any value when I output $ name when I POST data name to another webpage?
In Versions later than PHP4.2, the default value of register_global is off.To get the variables submitted from another
If we ask those UNIX fans what they like most, the answer is that, apart from stable systems and remote startup, regular expressions will be mentioned; if we ask them what the biggest headache is, it may be a regular expression in addition to
3.6 line feed
When an expression cannot be contained in a row, it can be disconnected according to the following general rules:
-Disconnected after a comma-Disconnected before an operator-Select a higher-level disconnection, rather than a
Section 6 -- access attributes and MethodsThe attribute of an object instance is a variable, just like other variables in PHP. however, you must use the-> operator to reference them. $. for example, in 6.1, print the row of the name attribute of the
Section 13th -- Object serializationSerializing variables, including objects, can be converted into continuous bytes data. you can save serialized variables in a file or transmit them over the network. then, the data is deserialized and restored to
6. Some examples
Regular Expression
Description
/([A-z] +) 1/gi
Position where a word appears consecutively
/(W +): // ([^/:] +) (: d *)? ([^ #] *)/
Parses a URL into a protocol, domain, port, and relative path.
PHP and Java
Another trick of the PHP function is its ability to call methods of existing Java objects. This function allows you to integrate PHP into existing Java-based applications. If you are promoting PHP in your work, you can find the perfect
For pages that require authentication, it is best to use the apache server for authentication.However, the interface for apache server authentication is not user-friendly. Besides, not all situationsYou can use the apache server for verification,
PHP is a server scripting language used to create dynamic web pages. Like ASP and ColdFusion, users can use PHP and HTML to write WEB pages. When a visitor browses this page, the server first processes the PHP commands on the page, then, the
1. Q: Why does "APACHE. EXE: cannot determine local host name." appear ."?A:
Because ServerName is not specified by default for Apache in Windows, an error occurs during running.
The solution is to modify httpd. conf In the conf directory under
PHP has migrated the source code to git for management, and also made an image on github (https://github.com/php/php-src), so that more developers can contribute code for PHP.
PHP in the previous source code to the git management, but also in the
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