Turn: HmacMD5 algorithm [php] PHP code
Function HmacMd5 ($ data, $ key) {// RFC 2104 HMAC implementation for php. // Creates an md5 HMAC. // Eliminates the need to install mhash to compute a HMAC // Hacked by Lance Rushing (NOTE: Hacked means
Xdebug configuration in PHP this article mainly describes the Xdebug configuration in PHP 5.3 in Windows:
My configuration is as follows:
[Xdebug]Zend_extension = "E:/Program Files/PHP/php_xdebug-2.1.0RC1-5.3-vc6.dll"; be sure to use the
Php was replaced by a cms system recently written, using php. when writing a template, you need to replace the string with a function only once. after checking it online, there is a recursive function, so I wrote
Function replace_once ($ replace,
Php learning experience
[1] The get and post variables cannot be passed between pages. in the latest php version, automatic global variables are disabled, to obtain the submitted variables from the previous page, use $ _ GET ['foo'], $ _
PHP magic functions
1. _ Construct ()
Called When instantiating an object,
When _ construct and a function with the class name both exist, __construct will be called and the other will not be called.
2. _ Destruct ()
It is called when an object
PHP web security question Rule 1: never trust external data or input
The first thing that must be realized about Web application security is that external data should not be trusted. External data includes any data that is not directly input by
Php sets the memory. although The Drupal core only needs to allocate 8 MB of memory to your server, you may need to increase the memory allocation according to the number of modules used on your site. When you access? Q = admin/moudles loads all
$ _ SERVER http://a.liao1.com/sherry/auto/test.php for PHP functions
// Obtain the domain name or host addressEcho $ _ SERVER ['http _ host'].""; // A.liao1.com
// Obtain the webpage addressEcho $ _ SERVER ['php _ SELF '].""; //
PHP and MySQL (4) user interaction and forms
For many PHP applications that we are interested in, the most basic function is to achieve interaction with users who browse this page. If you are familiar with JavaScript, you may get used to such a
{Php programming skills} each development language has its own unique things. PHP is no exception. although I just started learning PHP, I have 2 years of Java experience and 1 year of experience. NET experience is not difficult for me. The key is
Php protects against SQL injection. in SQL injection attacks, you can manipulate the form or GET query string to add the information to the database query. For example, assume there is a simple login database. Each record in this database has a
You can search for PHP book resources on Verycd to find all of them.
The rhino book looks very sleepy.
As a beginner, you can try to read lighter books. in China, you can read the books at extra time.
It is not recommended to spend time on this.
Php verification code writing class Introduction: This is a php verification code writing class detailed page, introduced and php, related knowledge, skills, experience, and some php source code, etc.
Class = 'pingjiaf' frameborder = '0' src = 'http:
Description of PHPCURL Library: this is a detailed page of php curl Library explanation. it introduces php, related knowledge, skills, experience, and some php source code.
Class = 'pingjiaf' frameborder = '0' src = 'http: //
PHP learning arrangements:
1. PHP regular expression
2. PHP design mode
3. MySQL slow query
4. meaning of HTTP 101,202,301,404,502 protocol status words, such
5. linux commands: du/df/wc/ln
6. svn commands in linux
7. Architecture questions:
The use of the CI framework in PHP's return usage is studied today. I noticed that his configuration file adopts a method. As follows:
/**
* Comments
* The following is a file in the format of config. php.
*/
Return array (
'Config1' => 'some value
Php error operation introduction: This is a detailed page for php error operations. it introduces php, related knowledge, skills, experience, and some php source code.
Class = 'pingjiaf' frameborder = '0' src = 'http: // biancheng.dnbc?info/pingjia.
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