Common functions of the PHP collection program. Current script URL functionget_php_url () {if (! Empty ($ _ SERVER [REQUEST_URI]) {$ scriptName $ _ SERVER [REQUEST_URI]; $ nowurl $ scriptName;} else {$ scriptName $ _ SERVER [PHP_S current script URL
How to import an SQL file of mysql5 to mysql4. 1. import the SQL file exported from mysql5. 2. use the mysqldump-uroot-p1234 -- opt -- compatiblemysql40-A-re: localhost. SQL -- compatiblename parameter description as follows: -- comp 1. import the
FleaPHP security settings. Prerequisites: the fleaphp folder cannot be placed in a path inaccessible to http, and the configuration files of apache and php cannot be modified. Fleaphp uses the default configuration Method: 1. Prerequisites for
Php simulates ZOL paging code. Copy the code as follows :? Php *** function: Paging class * author: phpox * Time: SatJul1418: 15: 02CST2007 * defined (PHPOX) ordie (header (HTTP1.1403NotForbidden); class
The code is as follows:
/*** Function:
Super comprehensive PHP interview questions collection 12th page. 1. use PHP to print the time format of the previous day in the format of 2006-5-(2 points) 2. echo (), print (), print_r () (3 points) 3. templates that can be used for separation of
PHPbase64 + gzinflate compression encoding and decoding code. Base64 + gzinflate compressed (encrypted) files are usually? Eval (gzinflate (base64_decode (a php file in the header. Below we provide the relevant encoding and decoding (encryption and
Php + AJAX can solve the problem of garbled characters when transmitting Chinese characters. If the transfer parameters are directly assigned, garbled characters are generated! The copy code is as follows: http_request.open (POST, url, true);
Detailed parameters and descriptions of $ _ SERVER in PHP. $ _ SERVER [PHP_SELF] # file name of the script being executed, which is related to documentroot. $ _ SERVER [argv] # parameters passed to the script. $ _ SERVER [argc] # contains the
Use PHP to read RSSfeed code. The help of the rss reading is slightly transformed on the basis of this program, mainly to output an array string and solve the encoding problem. Php source code and code are explained in detail as follows, and the rss
For details about how to decompress the gzip file or string in php, see. In fact, it is very easy for php to decompress gzip. you can use the built-in gzdecode function, but it is a pity that I have been configured for half a day and cannot support
Php online package source code. Package functions ~ Easy and convenient! Although the compression ratio is a little worse than winrar, it does not matter. after all, only packaging and downloading saves you the trouble of packing the site on the
PHP calls the implementation code of the MySQL stored procedure. MySQL seems to have introduced the stored procedure since MySQL 5.0, but it has never been touched before. However, because it is mainly used as an internal system, many applications
The code of the PHP6 prefix JSON instance. It is based on JavaScriptProgrammingLanguage, a subset of the StandardECMA-2623rdEdition-December1999 JSON mainly uses the correct {} to wrap each object (object), it is based on JavaScript Programming
Use phpinclude to implement path encryption. 1. the code for copying the include. inc intermediate program is as follows :? Include_onceincludeBase.php; $ path; $ urlisBase: decrypt (urlDecode ($ _ SERVER [QUERY_STRING]); parse_str ($ url );
1.
Phpheader () function instructions. Header () function usage instructions: 1. function :~~~~~~~~~ PHP only sends the header of the HTML document to the browser using the HTTP protocol to tell the browser how to handle the page. the instructions for
Php filters dangerous html code. The following is the program code: Copy the code as follows: functionuhtml ($ str) {$ farrarray (s +, the following program code is displayed:
The code is as follows:
Function uhtml ($ str){$ Farr = array ("// \
Flash + php + mysql: create a simple message. in this tutorial, page 13th is displayed. (Refer to the post of volcano:★FLASH and ASP communication Getting Started Tutorial-make your own message book !). There is no good php message book related
Differences between intval () and (int) conversion in php. Copy the code as follows :? Forced conversion of phpechobr values:; $ string2a; $ string1intval ($ string); echo $ string1 value:. $ string1. $ string2 value:; single quotes will not be
Phpmysql index problems. Obviously, this is a problem that anyone who uses MySQL will encounter. Recall the MySQLGUI tool mentioned in the environment configuration. By the way, you can go to www. my, which is obviously a problem that all MySQL
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