In a previous company internal management system (Inneroa), for the construction of the directory tree I use the dtree, to achieve the unlimited level of directory display and the right-click menu function (the context menu includes: New, modify,
I just do a simple small example, give everyone a train of thought, Roar ~ ~ ~ ~
1 Using Tools
Reflector.exe used to view. NET code this is not to say it is to learn. NET essential Artifact
Ildasm.exe: Used to compile Dll,exe as Il file
Ilasm.exe:
Use an alternative to read the Member method: You can write your own writing, deepen understanding.
such a demand ; Hope that people can speak, do arithmetic problems ..., so you need to use the member method:1. Add Speak member method, output I'm
php5.4 before the Json_encode when the Chinese will be Unicode encoding, Chinese will be encoded, become unreadable, similar to the "\u***" format, but also to a certain extent, increase the amount of data transferred.
For example:
Copy CodeThe
A. If you want to use gb2312 encoding, then PHP will output headers: header ("content-type:text/html; charset=gb2312 "), static page add
, the encoding format for all files is ANSI, which can be opened with Notepad, saved as select encoding ANSI,
Sometimes we need to use randomly generated username and password in the application, which can greatly improve the security of the application, generate a random user name and password in PHP can use the Mt_rand function or the RAND function, the
First, you need to download the Phpmailer file package Phpmailer. http://phpmailer.sourceforge.net/
Second, confirm that your server system already supports socket, through phpinfo (), check whether sockets is supported (socket is part of PHP
Notice:undefined Variable:email in D:\PHP5\ENOTE\ADDNOTE. PHP on line 9
Notice:undefined Variable:subject in D:\PHP5\ENOTE\ADDNOTE. PHP on line 9
Notice:undefined variable:comment in D:\PHP5\ENOTE\ADDNOTE. PHP on line 9
........
In fact, the
There is a TXT file that contains 100,000 records in the following format:Column 1 column 2 column 3 column 4 column 5A 00003131 0 0 adductive#1 adducting#1 adducent#1A 00003356 0 0 nascent#1A 00003553 0 0 emerging#2 emergent#2A 00003700 0.25 0
Core code:
Copy CodeThe code is as follows:
@header ("http/1.1 404 Not Found");
@header ("status:404 not Found");
echo ' echo 404 ';
Exit ();
If you need to load 404 of pages can be the following code, mainly note the file path
Copy CodeThe code
When we use PHP recursion, we encounter a variety of problems, the more troubling of which is the problem with the recursive return value of PHP. In fact, it's a very simple question to think about. But it was the simple question that bothered half
1. Introduction and difference between cookies and session
In a very long time, we need to track the activities of the visitors throughout the site, automatic or semi-automated identification of their identity (that is, often said site landing and
Using WordPress friends will inevitably need to their own WP for some personality adjustment or to do a set of personal theme for themselves, the general small modification of the direct online adjustment is completely no problem, but if you want to
First, enter the source directory
CD php-5.2.13/ext/ftp
#运行phpize生成configure/usr/local/php/bin/phpize
#编译, designate Php-config, note the php-config here, not php.ini./configure--with-php-config=/usr/local/php/bin/php-config#上面可以添加--enable-ftp, or
So is there a way to automatically clean up the Temp folder?
The following code is the PHP code for a simple scheduled cleanup of files under a folder.
PS: This code does not restart the site will continue to execute, so only for local environment
In the recent reading of PHP teaching video, which referred to the PHP operation of XML documents, learned a little DOMDocument class. I look at the manual and all English, do not understand. But also wrote a class, implemented the Find XML node,
First, Gzip introduction
GZIP is the abbreviation for GNU Zip, which is a file compression program for GNU Free Software and is often used to represent the gzip file format. The authors of the software are Jean-loup gailly and Mark Adler. October 31
Copy CodeThe code is as follows:
=============================== Time Date ===============================
Y returns the last two digits of the year, the Y-year four digits, the M-month number, and the M-month English. D Month Date number, D week a
Method One:The commands you need are as follows:
Copy CodeThe code is as follows:
Rewriteengine on
Rewritecond%{Http_referer}!^$
Rewritecond%{http_referer}!^http://(www.)? Simue.com/.*$ [NC]
Rewriterule. (GIF &line;jpg) $-[F]
If you think it's
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