Method One
Using phpMyAdmin, this is the simplest, modify the MySQL library's user table,
But don't forget to use the password function.
Method Two
Using Mysqladmin, this is a special case of the preceding declaration.
Mysqladmin-u root-p Password
So let's start with the installation configuration:
1. The phpMyAdmin downloaded to the general Web is a compressed package that we release into the Htdocs directory, such as Htdocs\phpmyadmin.
2. Open the phpMyAdmin directory, if there is a
Program one: Responsible for randomly extracting data from a dictionary and writing a new file. (1.php)
Copy CodeThe code is as follows:
/* Extract random values from the dictionary file */
$file 1 = "./words.dic";
$file 2 =
Array_unique (PHP 4 >= 4.0.1, PHP 5)
Array_unique--Removes duplicate values from the divisor group
Description
Array array_unique (array array)
Array_unique () accepts the array as input and returns a new array with no duplicate values.
Note The key
As you all know, Dedecms supports some usages of [Field:senddate function= "strftime ('%y-%m-%d%h:%m ', @me)"/], that is, the use of function within the tag, Call the relevant function to re-process the contents returned by the current label and
An example of the principle of encryption and decryption
Package lockunlock;
Import java.awt.*;
Import java.awt.event.*;
Import java. applet.*;
Import javax. swing.*;
Import java.util.*;
public class Lockunlock extends JApplet {
Private Boolean
First, use the header method to set the message header Cache-control
QUOTE:
Header (' Cache-control:private, Must-revalidate '); Support page Bounce
Second, use the Session_cache_limiter method
QUOTE:
Note to write before the Session_Start
Inserting data into Php?name=%ca%fd%be%dd%bf%e2 "onclick=" Tagshow (event) "class=" T_tag "> Database displays garbled and from php?name=%ca%fd%be%dd% Bf%e2 "onclick=" Tagshow (event) "class=" T_tag "> Database read out the data on the Web page as
Code reuse
Include ()
Require ()
Both of these functions are used to refer to a file, except that the include () generates a warning when processing fails and require () is a dense error
Include_once ()
Require_once ()
These two functions are the
Make the Forum Faster PHP acceleration Setup PHP acceleration: Zend Optimizer Optimized PHP program
Zend Optimizer V2.5.7 for Windows
Software language: English
Operating Environment: WIN9X/NT/2000/XP
Zend Optimizer V2.5.7 for Windows software
The first type:
PHP section
Copy CodeThe code is as follows:
if ($_files[' file ' [' Error '] > 0) {
Echo '!problem: ';
Switch ($_files[' file ' [' Error '])
{
Case 1:echo ' file size exceeds server limit ';
Break
Case 2:echo ' file is too big! ';
MySQL seems to be starting from 5.0 to introduce stored procedures, anyway used to do the application has never touched, but now because the main internal system, so many applications have used the stored procedures, of course, the front desk
The use of MySQL database backup, there is a very formal database backup method, and other database server has the same concept, but have not thought, MySQL will have a more concise use of file directory backup method, and quickly good.
First, data
In the development process, often because the form error and return to the page when the information is missing, in order to support page bounce, can be implemented in two ways.
First, use the header method to set the message header
A regular expression defines a rule for a string. The simplest regular expression does not contain any reserved words. For example, the regular expression hello only matches the string "Hello".
Regular expressions use some special structure, so they
Converts the character of an IP-point address back to the IP V4 format address
int Ip2long (string ip_address)
A string that converts an IP V4 format address back to an IP point sub-address
String Long2ip (int proper_address)
Gets the environment
An external program or external instruction that executes the input command. The return string is only the last line returned by the external program execution, and if you need to return the information completely, you can use PassThru ()
String
Open a connection to the MySQL server. Successfully returned a connector, false on failure
int mysql_connect ([string server[,string username[,string password]])
Open a persistent connection to the MySQL server
int Mysql_pconnect ([string
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