1: Why don't I get the variableI post data on one page to another page name, why is the output $name not get any value?
Register_global defaults to off in later versions of PHP4.2
To get a variable submitted from another page:method One: find the
1. RS. OPEN Sql,conn,a,b,c2. CONN. EXECUTE (SQL,ROWSAFFECTED,C)Parameter meaning:The value of SQL can be either an SQL statement, a table name, a stored procedure name, or any string that the data provider can accept. To improve performance, it's a
1. The naming specification of various variables in PHP
(1) directory naming, file naming, local variable naming:Use English nouns, verbs, underline as the word, all letters are lowercase
Contents: Upload, templates, install, manage ...
Files:
The global variable $_server[' path_info ' in PHP is a useful parameter, and many CMS systems use this parameter when beautifying their URLs.
For the following URL:
Http://www.test.com/index.php/foo/bar.html?c=index&m=search
We can get $_server['
The procedure for installing Zend Optimizer 3.3 under Ubuntu Server 9.04 describes:
First download Zend Optimizer3.3:
wget http://downloads.zend.com/optimizer/3.3.3/ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz
Installation:
$ sudo tar zxvf
Previous: DZ Forum core Code Analysis-core document Global.func.php
This file is the core of DZ's brain-level files.The real analysis, in fact, is not much content. Most are conditional judgments and command class statements. Introduce a large
Help Home (www.Bkjia.com) tutorial starting with PHP5.1.2, PHP adds a new hash engine that provides up to 35 different hash algorithms, including the MD5 algorithm, SHA1 algorithm.
Let's actually test the effect (PHP5):
The following
Objective
Not so long ago, Twitter, @doublechou (talented woman, everyone follow, blog) is doing a theme (now she inove). She wanted to do a random change to the background image, written in JavaScript, the program flow should be: Create an array
Starting with version 5.2, PHP native provides the Json_encode () and Json_decode () functions, which are used for encoding, which is used for decoding.
1, Json_encode ()This function is primarily used to convert arrays and objects into JSON format.
PHP 5.4来, which is another major version upgrade since 5.3. This upgrade was marked by the deletion of some of the functions of the air, resulting in a speed increase of up to 20% and less memory usage.
New features and changesKey new features of
PHP Chinese garbled is generally a character set problem, the code has the following several problems.
A The first is the PHP page encoding
1. The encoding of the PHP file itself should match the encoding of the Web page
A. If you want to use gb23
Let's start with an example:For example, you'll get a function that returns these kinds of situations:
1, more than 0 of the number
2, less than 0 of the number
3, equals 0 of the number (that is, 0)
4, False (On Failure)
At this time if you want to
addressed to Hunte:
Long time not to see you on the Internet, really a little to say that the feeling, no Hunte phpuser.com nothing. Turn your stand on the two articles, a special turn over an article to show an apology.
----------------------------
The advantage of the printf () function is that you can format the output!
The format is as follows:%[' Padding_character][-][width][.precision]type
All conversion instructions start with%, and if you want to print a% symbol, you must use
Mysqli encapsulates some of the advanced operations, such as transactions, while encapsulating many of the methods available in the DB operation process.
The most widely used place is the mysqli transaction.
such as the following example:
Copy the
The Ob_start () function is used to open the buffer, such as the header () function, if there is output, including carriage return \ space \ newline \ will have "Header had all ready to send by" error, you can first use Ob_start () The data Block
Common redirection methods are: 301 Redirect, 302 redirect and Meta Fresh:
301 redirect:301 represents permanent transfer (permanently Moved), 301 redirect is the best way to search engine friendly after changing the address of the Web page, as
Fire Station College (bkjia.com) PHP tutorialThe PHP program writes a bit of Chinese data in the cookie, while reading it in JavaScript does not display correctly? I believe many friends have encountered this situation, the day before the search,
call_user_func_array-Let arguments call a function in the form of an array
call_user_func-call a function that exists
create_function-Create a function
Func_get_arg-gets the value of a parameter in a function
func_get_args-get all the parameters of
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