Php + mysql open-source XNA aggregation program released and downloaded

PHP + MYSQL (php5 + mysql 4.1) is a simple open-source XNA aggregation. The effect is as follows:Http://xna.spvrk.com A simple aggregation program, use phpmyadmin to import cms_xna. SQL and modify config. inc. the database address in php can be

[PHP] practical function 2

1. generate random string functionsCopy codeThe Code is as follows:Function random ($ length ){$ Hash = @#@#;$ Chars =@# ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz @#;$ Max = strlen ($ chars)-1;Mt_srand (double) microtime () * 100

Discuz security question Algorithm

Today, my friend asked me if I could spare the answer to the discuz security question. Or crack, I have noticed a password before. I only remember that it was very short. I thought it was the MD5 obtained by substr, and finally I read the source

How to view or modify the Root password of Mysql)

First, start the command line. 1. Run:Taskkill/f/im mysqld-nt.exe The following operations operate some programs in the bin directory of mysql. If no environment variables are configured, switch to the bin directory of mysql and execute the

Instructions on adding the extension = php_mysqli.dll command to php. ini

Mysql is used as the database When configuring php5. Many people think that. add the extension = php_mysql.dll; command in ini. It is unclear why extension = php_mysqli.dll is recommended in many articles.You only need to check the latest official

Parse the call sequence of ajax events

Jquery ajax request method:Copy codeThe Code is as follows:$. Ajax ({Type: "GET ",DateType: "html ",Url: "index.html ",Error: function (msg) {alert ("error ");},Complete: function (msg) {alert ("complete ");},Success: function (msg) {alert ("success

PHP code used to obtain the complete URL of the current page

Javascript implementation:Copy codeThe Code is as follows:Top. location. href top-level window address this. location. href current window addressPHP implementation:Copy codeThe Code is as follows:# Test URL: http: // localhost/blog/testurl. php? Id

Control PHP output: cache and compress dynamic pages

Mod_gzip is an Apache module that uses Gzip to compress static html pages. IETF-compliant browsers can accept gzip encoding (IE, Netscape, etc ). Mod_gzip can increase the page download time by 4-5 times. I strongly recommend that you use mod_gzip

Php text operation class

A simple text operation classI wrote it before, but I never got a chance to use it. The text is not as good as the database.Data is saved in rows and ended with \ n. Note that the data you input must end with "\ n", which is the most basic class

Using php Recursion to implement unlimited classification and formatting of Arrays

We want to create an unlimited product category.First, the database field is:Id ---------- commodity primary key idFid ---------- product parent idName ---------- Product nameThe final output array format isCopy codeThe Code is as follows: array (0

PHP custom size verification code

Copy codeThe Code is as follows:Function vCode ($ num = 4, $ size = 20, $ width = 0, $ height = 0 ){! $ Width & amp; $ width = $ num * $ size * 4/5 + 5;! $ Height & $ height = $ size + 10;// Remove 0 1 O l and so on$ Str= "23456789

Php traversal of all files and folders in-depth analysis

1. Method 1:Copy codeThe Code is as follows:$ Dir = "D :";Static $ dir_list = 0;Static $ file_list = 0;Function listfile ($ dir ){Global $ dir_list, $ file_list;$ D = dir ($ dir );While ($ entry = $ d-> read ()){$ Tem_curnt = $ dir. "/". $ entry;If (

Detailed description of some common Headers

Common header commandsThe header is divided into three parts:The first part is the HTTP Version );The second part is the Status code );The third part is the Reason Phrase (Reason-Phrase ). // Fix 404 pages: use this header command to solve the 404

How to Set mysql to allow Internet access

The root account of mysql. I usually use localhost or 127.0.0.1 during connection. The mysql on the testing server of the company is also localhost. Therefore, I want to access the root account and the test is paused. Solution: 1. Modify the table,

How to Use mysql_fetch_array () to obtain the data of the current row

Similar to mysql_fetch_row (), the mysql_fetch_array () function is used to obtain the data of the current row in the result set and automatically slide down the row after the call. It is defined as follows.Copy codeThe Code is as follows:Array

Php set_time_limit () function Usage Details

Syntax: void set_time_limit (int seconds)Note:Set the number of seconds that a program can run. If the time limit is reached, the program will return an error. The default limit time is 30 seconds. The value of max_execution_time is defined in the

In-depth analysis of php htmlspecialchars () and shtmlspecialchars () Functions

Definition and usageThe htmlspecialchars () function converts some predefined characters into HTML objects. The predefined characters are:• & (And number) become &• "(Double quotation marks)"• '(Single quotes)'• •> (Greater than)

PHP Error and Logging functions

Introduction to PHP Error and LoggingThe error and logging functions allow you to process and record errors.The error function allows you to define error handling rules and modify the method for recording errors.The logging function allows you to

Detailed explanation of xhprof, a php performance testing tool, in the production environment

Xhprof is a php performance testing tool open-source by facebook. It can also be called the profile tool. It doesn't know how to translate it to make it more satisfactory. There are many similarities with xdebug. In the past, there were some records

Php5 mysql paging instance code

Copy codeThe Code is as follows:// Connect to the database$ Db = mysql_connect ("localhost", "root ","");Mysql_select_db ("hy", $ db );// Set the number of records displayed on each page$ Pagesize = 25;// Obtain the total number of records and

Total Pages: 12780 1 .... 10212 10213 10214 10215 10216 .... 12780 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.