There are a number of functions in PHP that get remote server files, including: File () function, file_get_contents () function, fopen ()->fread ()->fclose () mode, curl method, Fsockopen () function, socket mode, and so on, let me introduce you
Verification code generation and application example
In the Write user authentication page, such as registration, login, in order to enhance the security of user login, add verification code verification.
The verification code generates a PNG image
This article to introduce to you about Rawurlencode () and UrlEncode () function Difference usage Introduction, dear friends can refer to.
Today when reading open source code found a URL of the encoding function: Rawurlencode (), has not been
GD Library in PHP default is not open, if you want it to support the image processing function we need to php.ini in the Extension=php_gd2.dll to remove the front;
When the Windows Server opens the PHP GD library, the results of phpinfo () after
The multi-lingual support that was introduced from MySQL 4.1 is really great, and some features have overtaken other database systems. However, in the course of testing, it was found that the use of PHP statements prior to MySQL 4.1 would result in
Provide a sophisticated method of compressing the log and database files as follows:
1. Clear the Log
DUMP TRANSACTION Library name with NO_LOG
2. Truncate the transaction log:
BACKUP LOG database name with NO_LOG
3. Shrink the database file (if not
The correct method of compiling is important, but it is only part of the effort to improve the performance of the MySQL server. Many of the parameters of the MySQL server affect the performance of the server, and we can save these parameters to the
First from the official website APACHE2.050, PHP5, MYSQL4.0.20, PHPMYADMIN2.57
Apache_2.0.50-win32-x86-no_ssl.msi
Php-5.0.0-win32.zip
Mysql-4.0.20d-win.zip
Phpmyadmin-2.5.7.zip
Operating system win2003 system disk: D-Disk
First step: Install Apache
The connection type is the same as all, except that it scans the index tree only. It is usually faster than all, because the index file is usually smaller than the data file. MySQL uses this type of connection in cases where the field knowledge of a
An absolutely easy-to-use Php/mysql/apache integration environment: easyphp
easyphp 1.5 17/08/2001
Nouvelle version avec:apache 1.3.20-php 4.0.6-mysql 3.23.40-phpmyadmin 2.2.0RC4. Quelques nouveautés:gestion des alias et des répertoires data MySQL,
PHP Gets the field length Mysql_field_len is the length of the value returned by getting mysql_query,
Grammar:
Mysql_field_len (Data,field_offset)
Data: Required option. Specifies the data pointer to use. The data pointer is due to the mysql_query (
Two. VB Program of Guide Library
This project to use some object library, in terms of database access, the decision to use ADO (ActiveX Data Objects), for the person who used the ASP, the name should be very familiar with, in fact, its application
PHP tutorial data types and variables
PHP is a weak type, a variable that does not need to be declared beforehand, and does not require a specified type. PHP variables are $ plus variable names, PHP variables are case-sensitive. For example, $my = '
Common Mistakes!1016 Error: File cannot be opened, use background repair or use phpMyAdmin to repair.1044 Error: Insufficient database user rights, please contact the space provider to resolve1045 Error: Database server/database user name/database
A simple PHP two-dimensional array is sorted by the elements in the second dimension so that it does not affect the data, only the contents of the array to sort, the need for a friend reference.
The code is as follows
Copy Code
There are many ways to generate random passwords, the simplest is to use the PHP Mt_rand () function to generate a series of numbers directly, let me introduce you to PHP generated random password program
The simplest way to mt_rand a
Initialize session
Session_Start ();
Add a value for URL rewrite
Output_add_rewrite_var (' var ', ' value ');
Insert a connection
echo ' link ';
Send buffer data
Ob_flush ();
Reset the value of the URL rewrite
A PHP random password generator found from a foreign website Oh, first you can define the cardinality, and then use Mt_rand and substr come in to take the nth character.
Randomly generated password:m1ztpxw8
The code is as follows
Below us is a file image upload class, call method Upfile ($path = "./", $format = "", $maxsize = 0, $over = 0): constructor parameters (save path, upload format, upload maximum number of bytes, overwrite files with the same name), if you want to
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