As a qualified PHP programmer, some basic knowledge is necessary to know, such as the difference between 0 and empty, about this difference, the following through a few examples of simple analysis, in which the truth, imaginative achievement here,
How to use PHP to create RSS reader for Beginners
Jacques Noah published an article on devshed to create a PHP-based RSS reader in PHP4 with any version of MySQL, with three main tags in the RSS document: Title,link and Description, contain the
Share the implementation code for the PHP symmetric encryption algorithm.
KEY is a previously defined constant
Mcrypt::::(' ROOT ') or (' Access Denied '
Encrypt (
(Mcrypt_encrypt (mcrypt_rijndael_256,
1. The server is custom-made, do not know the corresponding CentOS version;
2. PHP is compiled by itself, and the server does not keep the corresponding version of the source code, through/pathto/php-v find the PHP version number, and then wget to
PHP file Upload processing process and the various aspects involved in the attention
HTML Basics
Submit via post form
PHP Upload Steps
Client submits via HTTP POST form
Files are stored in the default temp directory after uploading,
discuz Password encryption method, recorded here.
Discuz when registering, the password will be encrypted according to a rule.Like my password is 123456.echo MD5 ("123456");
Will output:e10adc3949ba59abbe56e057f20f883e
The value of the database
To determine whether a client uses a proxy server, it can be judged from the environment variable information sent by the client.
Specifically, just look at the Http_via field, if this field is set, the client uses a proxy server.
The anonymous
Whether you are writing JavaScript or PHP, you are always accustomed to using single quotes. But the weekend at home coding encounter a problem, you need to filter the string by PHP line breaks, follow the following method:
$out = str_replace
----------------------------------------------------------------------------------------------
A non well formed numeric value encountered=>
From the word surface to understand, you can probably spy on some meaning: met the formation is not very
SPL, the standard PHP library, is an important part of the PHP5 object-oriented functionality. "The standard PHP Library (SPL) was a collection of interfaces and classes that was meant to solve common problems" 。
Splsubject and Splobserver
The simple way to share the content of images and div in PHP is through regular expressions.
1. Get all the pictures in the webpage:
$text = file_get_contents (' http://www.jbxue.com/'// Preg_match_all $text $match //print_r($match?>
2.
One
IntroductionTemporary files, as the name implies, are temporary files, and the file has a short life cycle.
However, a lot of applications run without temporary files, temporary files on our computer everywhere, mainly in the following forms of
The static (static) keyword is used to define statically defined methods and properties, and static variables can also be used to define statics and late static bindings.
1 static variable variable
A static variable exists only in the local
How to install Phalcon on PHP
Always install not successful on the official web tips to engage
First put in the Ext folder and then the php.ini inside add extension=php_phalcon.dll and then restart Wamp to prompt this error ...
And then
Twig is a fast, secure, and flexible PHP template engine with many filter and tags built-in, and support for template inheritance, allowing you to describe your template in the most concise code possible. His syntax is very much like the template
0. It is quicker to use single quotes instead of double quotes to contain strings. 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 a
PHP two-dimensional array with same key name addition
Array
(
[UID] = 19
[PID] = = Array
(
[0] = 91
[1] = 81
)
[Price] = = Array
(
[0] = 6
[1] = 14
)
[Pnum] = = Array
(
[0] = 1
[1] = 1
)
)
The value of the same key name is added as the number of
Mysql.php get the records in the database, complete personal experience Summary, for reference only!
/**
*php+mysql Database Basic functions
*http://blog.csdn.net/yown
*/
############################################
#获取序列ID
#########################
First, PHP configuration MySQL
1, copy the PHP installation directory under the Php_mysql.dll and MySQL installation directory libmysql.dll files to C:/windows/system32;
2, Configuration
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