Official Download Address:
MySQL http://www.mysql.com/downloads/mysql/find an MSI file down. Apache http://httpd.apache.org/download.cgi
PHP http://windows.php.net/download/#php-5.4
The first is MySQL, (this way, the Oracle acquisition of
Copy CodeThe code is as follows:
Login Page Setup session, when name is present in the session
Session_Start ();
$name = $_session[' name '];
if (empty ($name)) {
Header ("Location:error.php");
Exit ();
//}
Process-oriented, data paging display
if (
To solve this problem, we need to use onblur to achieve it. The following code is not a project implementation code, but simulates the same functionality.
Copy CodeThe code is as follows:
.
In particular, the + operator, which means that the right array unit (DE-duplication) is appended to the left-hand array.
Copy CodeThe code is as follows:
echo "\ r \ n The first case \ r \ n";
$a =array (1,2,3,4,5,6);
$b =array (7,8,9);
$c =array_
See a topic on the Internet:
The result of Array ("a") +array ("B") is ___
A.array ("A", "B")B.array ("B", "a")C.array ("B")D.array ("a")
Answer: D
PHP two arrays added, why is the result still unchanged?
Because they are equivalent to array ("0″=>"
The main feature is based on Beibei's date of birth to show how old Beibei is now, showing the growth of Beibei in real time.
Use the current time minus the date of birth, but can show how old, a few months, and a few days.
The algorithm of the day
At this point, the is_scalar built-in function comes in handy.
Is_scalar--detects if a variable is a scalar
Scalar variables are variables that contain an integer, float, String, or Boolean, while array, object, and resource are not
Some questions about Phpexcel export color, how does the color of Excel exported with phpexcel inconsistent with the color display in the Web page? Want to know what the hell is going on? What should be done to solve it? The PHP code details are as
Is_writable is used to handle, remember that PHP may only be able to access files by running Webserver's username (usually \ ' nobody\ '). Restrictions that do not count toward Safe mode.
Example #1 is_writable () example
Copy CodeThe code is as
Because a few days ago wrote an article, with Php-excel-reader class import Excel content, by the way, some Excel export problem, I use simple Excel, a very easy export XLS class, very useful!
Simple Excel source code is as follows:
Copy CodeThe
Domain Names and cookiesA question came to mind: www.g.cn can set the cookie to. g.cn, so www.com.cn can set the cookie to. com.cn?
Test result: No. Because the browser knows that the suffix of www.com.cn is. com.cn instead of. cn, it is forbidden
Algorithm principle
If p represents the full arrangement of n elements, and Pi means that n elements do not contain the full permutation of element I, (i) pi indicates the arrangement of the prefix I in front of the permutation pi, then the full
Simply explain some of the code:
The first one ~ (]+?>) ~si
This regular is a match to the content in . Simply say it's all.
。
A second ~]*?/>~si
This regular is a match to the content in . is a single closed label such as
The third one ~
]*
Copy CodeThe code is as follows:
This is the default connection to the local 27017 port, of course you can also connect the remote host such as 192.168.0.4:27017, if the port is 27017, the port can be omitted
$m = new Mongo ();
Select the comedy
Traffic statistics function
Display effect:
Total Visits: 399
Today's traffic: 14
Yesterday's flow: 16
This code is for learning communication only, there must be inappropriate. Please forgive me!
--
--The structure of the table ' MyCounter
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