Implementation of URL pseudo-static in PHP
The static URL, I generally with the help of apache,nginx,htaccess, and so on, seldom use PHP to achieve the static URL, with PHP to achieve static more trouble, so personally is not recommended to use
PHP Rookie Standard
1. Do not use tools such as PhpDoc to properly annotate your code?
2. Are you blind to an excellent integrated development environment such as Zend Studio or Eclipse PDT?
3. Have you never used any form of version control
How to tell if the browser is 360 browser
PHP code or JS code, Baidu several can not,
For 360 browser version 5.0
------Solution--------------------
Grab the package and see what the 360 browser browser features are and then judge.
But now many
The difference between single quotation marks and double quotes in PHP
In a programming language, both single and double quotes are important, as is the case in the PHP language. Compared to ASP, PHP quotation marks better use, in ASP, to put the
The PHP---Custom Create directory file method----If the directory already exists, the directory must be empty to continue creating
BUG:
If the directory already exists, the directory must be empty to continue creating
"; continue;} Create the
PHP add code, this machine can not add data by uploading to the server
PHP Code
$SetID =$_request[id];//separation Price Type $temp_day = ""; $temp _ary = $_post[setcountid];for ($a =0; $a
1) {$temp _day= "0,". $temp _day;}
MySQL Character set issues
The Web page All Utf-8,mysql installs is uses the UTF8, the webpage set up the mysql_query ("Set names UTF8");
But can not add Chinese data to MySQL, changed to mysql_query ("Set names GBK"); Yes, it's a bunch of garbled
Use of the PHP header function
The cache of the Web page is controlled by the "Cache-control" in the HTTP message header, and the common values are private, No-cache, Max-age, must-revalidate, etc., and the default is private. Its function is
PHP's use of zip
/** * * Create Compressed Package * @param array $arr need to compress the file part path and file name, shaped like array (* '/file/upload/1.php ', * '/file/upload/2011/1.jpg ', *) * * @return The partial path and file name of a
PHP Implementation Adapter (Adapter) mode
Adapter Mode Core idea: the operation of certain similar classes into a unified "interface" (here is the analogy of speaking)-adapter, or analogy to an "interface", unify or block the details of those
Warning for floating point accuracy in PHP
This is a hint from PHP document:
A simple decimal score like 0.1 or 0.7 cannot be converted to an internal binary format without losing a little bit of precision.
Floor ((0.1 + 0.7) *)? return 7
PHP Database Connectivity Performance Issues
Just started to learn PHP, but there is a problem not understand
PHP is a user access page to establish a connection with the database, but if the number of connections is large, it is not
Performance is
How to accurately get the number of people online, not by IP number discuz.
Discuz x2.5 How to accurately count the number of people online, not by IP number.
And how many people on the LAN are counted online, not because they are the same IP and
How PHP Converts a 16-based floating-point number to decimal
such as hexadecimal number: 436a5301
The decimal floating point number is: 234.324
How can I use PHP to achieve the above features?
Note, I found a lot of information on the Internet has
The null value passed in SQL is judged
I have four of them.
Such an input value
Action to the processed PHP page
Is there any way to reasonably let the PHP page of the SQL statement to determine when the field is empty, it is not the search for the
How can someone say to generate a unique ID with MD5?
Because of system time, the ID generated by the function is not optimal. To generate an absolutely unique ID, use the MD5 () function (find in the string function Reference).
It is recommended
PHP Send SMS, the firewall needs to open that port
PHP send SMS, in the firewall need to open that port;
Is the server Linux?
------Solution--------------------
PHP Send SMS, how do you send, call is where the interface? We don't know how to
PHP implementation two fork tree, clue two fork Tree
Createthreadtree (); echo $tree->threadlist (). "\ n"; traverse the lead from the first node two tree echo $tree->threadlistreserv (); reverse traverse?> from the last
PHP Header Cache---header parameter description
1. Accept: Tell the Web server what type of media you accept, */* represents any type, type/* represents all subtypes under that type, Type/sub-type.
2. Accept-charset:?? The browser affirms the
PHP Basics (4)-cookie use
PHP Basic Knowledge-cookie use
Sample code download page http://xieye.iteye.com/blog/1336095 (in attachment)
A cookie is a simple definition of the data that the browser transmits when it sends a request to 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