How to change the Apache port: Locate the httpd.conf file under the Conf directory in the Apache installation directory. Open it, find "Listen", followed by the Listen number is the port number, the default state is "Listen 80". As mentioned in the
Addslashes--use a backslash to reference a string
Extract (Addslashes ($_post)); --Process the post form
The client
The variable names in the form are taken out.
Extract (Addslashes ($_get)); --Handling Get forms
Take out the variable names
This article shows you how to use PHP to build an object-oriented graphics layer. Using an object-oriented system can be used to build complex graphics, which is much simpler to build than using the basic functionality provided in a standard PHP
First of all
1. Make sure you have php_mbstring.dll this file under your windows/system32, and do not copy it into Windows/system32 from your PHP installation directory extensions.
2. Find php.ini in Windows directory Open edit, search Mbstring.dll,
The general idea is this: in order not to let the previous page refresh, I used an IFRAME to sneak into a two-level sub-page, to read the data in the database, and finally pass the desired data to the parent page, complete the selection and transfer
When the Chinese character is truncated, according to the coding rules he always vlasov the other words in the back together as a Chinese character interpretation, which is the reason for garbled. And the value of 0x81 to 0xFF and 0x00 combination
In the FCKeditor directory Fckconfig.js Open, find fckconfig.toolbarsets["Default"] here is the Configuration function button, you need to stay, do not need to delete, can also be commented out.
If you need multiple configurations, you can set
PHP Do While method
Generally need first $row=mysql_fetch_array ($result)
And then
do{
Something
}
while ($row =mysql_fetch_array ($result))
PHP while loop
while ($row =mysql_fetch_array ($result)) {
}
http://www.bkjia.com/PHPjc/31900
A. 10 words
1. Do not rely on the register_global=on environment, from the day you have just learned to configure the PHP operating environment and even do not understand what register_global on the on-off impact on their own, it should be bold to
Beautify php, good php formatting tools
http://www.bierkandt.org/beautify/
Http://pear.php.net/package/PHP_Beautifier/download
Recently in the group to new people, their code is not too standard time to see really uncomfortable
This tool is very
A very good PHP calendar code
Copy CodeThe code is as follows:
/**
* Calendar
*
* Copyright (c) by Chen Yixin (Deep Space). All rights reserved
* To contact the author write to {@link mailto:shenkong@php.net}
* @author Chen Yixin (Deep
Setcookie ("Cookie name", "Value", "Scope")
Scope "/" means that the cookie acts on all files in the root directory
The scope "/root/" indicates that the cookie acts on all files under the root directory
http://www.bkjia.com/PHPjc/318775.html
Then create the file as follows, the 1th step is to connect the database, then write and then read.
Copy CodeThe code is as follows:
$mysql _server_name = "localhost";
$mysql _username = "root";
$mysql _password = "";
$mysql _database =
1, the rule of law: the use of a recursive layer of the deletion.
Copy CodeThe code is as follows:
Deletedir ($dir)
{
if (RmDir ($dir) ==false && is_dir ($dir)) {
if ($DP = Opendir ($dir)) {
while (($file=readdir ($DP)) = False) {
if (Is_dir
When we use query statements, we often have to return the first few or the middle of a few rows of data, this time what to do? Do not worry
MySQL has provided us with such a feature.
SELECT * FROM table LIMIT [offset,] rows | Rows Offset Offset
The
1. Do not turn to HTML entities
A basic common sense: all untrusted input (especially the data submitted by the user from the form), and the output should be preceded by a change of meaning. echo $_get[' Usename '];
This example has the potential
Collect the full MySQL date and MySQL time functions
Date_format (Date,format)
Formats the date value according to the format string. The following modifiers can be used in the format string:%M month name (January ... December)
%W Week name (Sunday .
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