PHP Development Note Series (ix)-Arrays (iii)
??? Wrote two articles about the daily use of PHP arrays, this "PHP Development Note Series (ix)-Array (iii)", focusing on the size and sorting of arrays.
??? 1. Get the array length
??? The count ()
Everyone to see this code, how to plug into the database
Include ("db.php");
if (!empty ($_post[' Sub ')) {
$title =$_post[' title ';
$con =$_post[' non '];
$sql = "INSERT INTO ' test ' (' id ', ' title ', ' Non ', ' date ') of VALUES (' null ', '
High score kneeling Beg asp/php string encryption decryption or string base64
For example:
Original URL string: http://wwww.adfasf.com/upload/20120304/4532524.jpg
I need to encrypt this string to: a short string, uppercase and lowercase letters +
"PHP" converts "variables" to "files that can be introduced" and the use of exceptions
Slot Spit, recently in a book called "Code Concise Way", the book says How to make your code easier to read and benefit. Interested friends can have a
AS3 Five ways to communicate with PHP (based on HTTP protocol)
/** * This is based on the HTTP protocol * altogether introduced five methods */package {import Flash.display.Sprite; Import flash.events.*; Import
There is a problem calling the MYSQLI function, the environment has been configured.
$mysqli =new mysqli ("localhost", "root", "12345", "student");
$query = "SELECT * from person";
$result = $mysqli->query ("$query");
if ($result) {
while ($obj = $
Three ways to define PHP strings
There are three ways to define PHP strings: single quotes, double quotes, delimiters1, single quotation marks: The simplest way to specify a simple string is to enclose it in single quotation marks (characters ').
To find 2 words of the same different phrase participle (to find algorithm ideas)
Statement 1 "CSDN Forum is a very good forum"
Statement 2 "CSDN is a nice jar."
The following results are obtained after the same
Csdn=>2
Forum =>2
is a =>2
Very =>1
How to use PHP to force file downloads
PHP allows you to change the HTTP headers that you write so that you can force a file to be downloaded, typically, the browser will load the files in the same window. This is perfect for documents such as PDF
Usually a few commands commonly used in PHP development work
Switch to root login: sudo su-
View System health Status: top
In top we have to monitor the used of the fifth swap partition at all times, and if this value is constantly changing, it
PHP numbers or string completion
php string autofill, auto-completion .
?
Method One:
Definition and usage
The sprintf () function writes a formatted string to a variable.
?
Grammar
sprintf (format,arg1,arg2,arg++)?
Parameter
40 Small instances of optimized PHP code
1. If a method can be static, then declare that he is static, the speed can be increased by 1/4;2.echo is more efficient than print, because Echo has no return value, and print returns an integer type;3.
How to implement pseudo-static in PHP
How to implement pseudo-static in PHP
Mod_rewrite is a very powerful feature of Apache that can implement pseudo-static pages. Let me tell you more about how it's used.
1. Detect if Apache supports
Chapter 3/3 syntax and data types of PHP
1. There are two types of statements: structure definition statements and function execution statements.
1) Structure definition statement (braces). You must not add a semicolon after the statement:
if ()
{
}
PHP uses Curl Proxy
Using PHP's Curl Library is a simple and effective way to capture web pages. You just have to run a foot book, then analyze the web you've crawled, and then you can get the numbers you want in a program way. Whether you want to
PHP programmer breaks The bottleneck of growth (reprint)
There are a few people around to do PHP development, because the interview, also exposed to a lot of PHP engineers, they often doubt their future in the technical growth and development, I
PHP Installation of PHP environment configuration under Windows platform
Original: http://www.phpiask.com/?p=43 Very good introduction
In the previous two articles of this series: MySQL installation and configuration, Apache installation we
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