How to install php5.2 in Ubuntu 10.04 or later
Ubuntu 10.04 or above does install php5.3, and if you need to install php5.2, you can install it automatically with the script in the attachment.
Installation steps:
1. Download the uncompressed
PHP asynchronous invocation improves user experience
This is one of my technical very good friend writes, wants me to publish on my blog can let the PHP lover's reader and the hobby PHP study friend reference.??????? Case: PHP languageAn SNS
PHP Sorting algorithm (INSERT, select, Swap, bubble, fast)
= $i; $j--) {///adjacent two number comparison if ($arr [$j] = 0) && ($iTemp 1) {$left = QuickSort ($left); }//sorted array $new _arr = $left; Put the current array first to the
Small examples of amfphp and PHP interactions
Here to download amfphp for? FLASH8 components, if you use a different version, please select here to download:http://www.adobe.com/products/flashremoting/downloads/components/Install after download,
ThinkPHP2.0 Integration using Smarty templates
Smarty Official website: http://www.smarty.net/downloadHow it's done:1. First go to smarty official online download a smarty, then unzip the package, there will be two folders: Demo and libs. Open the
PHP code optimization excerpt
1. If a method can be statically declared, the speed can be increased to 4 times times.2. Echo is faster than print and uses Echo's multiple parameters instead of string connections.3. Determine the maximum number
The TP framework writes a method to get the top-level category return result is null, and the auxiliary function can print the result.
PHP Code
Get the first class classification ID function getparentinfo () {$id _category=tools::getvalue ('
Some basic functions commonly used in PHP (ii)
11. Function strlen () Gets the number of bytes of the variable
$AA = "A013"
Strlen ($AA); The number of bytes obtained is 4.
12. function substr ()
echo substr (' abcdef ', 1);???? Bcdef
echo substr (
Some small questions about MySQL database and PHP, please expert advice
I have 20 data in my MySQL database, but I have only 16 data displayed on my PHP page, and I want to ask, what is the reason?
------Solution--------------------
That's the way
A basic PHP problem
Problem:
Assigns a string to an array.
String: $str = 1,2,3,4,0,34,0,8,55,0;
Array: $array = Array (1,2,3,4,0,34,0,8,55,0);
I want to use variables as parameters to the value of the array, how to write?
The following syntax
Novice ask a very simple PHP question
One-dimensional arrays
How to randomly extract 3 values and reserve key values
The most efficient and simple
And ask a little extra question. How to randomly disrupt a one-dimensional array and the key
Master Help to see how this is written?
Content 1Content 2Content 3
Ask the PHP to
remove the
Becomeand need to be handled together with <>. It should be after completion Content 1Content 2Content 3 I write the regular can not put <> delete
PHP Manual Read notes (1)
1. Language Reference | Basic Syntax
? ? The end tag (?>) of the tail of the PHP file is best omitted to prevent extra spaces and carriage returns from the tail of the file
? ? You can use/*//, #方式的注释
?
2. Type
? ?
Novice questions ... Just look at it ...
I am putting MySQL code independently on the in.php page, the in.php code is as follows:
PHP Code
Now to implement is to input information and save to the database, then 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