1. Extensible Markup Language xml: Extensible Markup Language 1. The role of XML: 1) Unify the format of data transmission. 2) Make a small database [file database]. 3) Make the configuration file .ini .propertity .xml .cfg 2. The basic format of the XML file: Tags: divided into double tags and single tags. The beginning and end tag names of the double tags must be consistent, with the same case, starting with / Ending tag, a single tag must be ended with / before >, text cannot be placed in a single tag. Attributes: Define some name-value pairs in the start tag, and the value must be a string 3. The basic composition of the XML file:  
1. Code example for saving modified results
## Introduction: 1. The role of XML: 1) Unified data transmission Format. 2) Make a small database [file database]. 3) Make configuration file .ini .propertity .xml .cfg
2.
In-depth understanding of generators in Python
Introduction: The generator concept generator does not save the results in a series, but saves the state of the generator for each iteration Returns a value until the StopIteration exception is encountered.
3.
Introduction:: PHP reads the directory tree: A while ago, there was such a question in the written test of the interview with XX company: Use PHP to list the directory tree! I was stunned when I saw it! The basic idea is still there, but it uses a recursive algorithm, but I don’t know much about the method of operating directory files in PHP, so I’ll take a good refresher course today! Solution: List the files in the directory. Determine whether it is a directory. If it is a directory, continue the recursion. Store all file names in a multidimensional array4.
php study notes - simple calculator script php from entry to proficiency php learning website php100
Introduction: PHP learning: PHP learning notes - simple calculator script: The content implemented in PHP this time is : The user inputs two numbers, and then selects one or more of the four operators of addition, subtraction, multiplication and division to display the calculation results. My idea is this: Create a form in HTML, which includes: 1. Selection boxes that allow users to select addition, subtraction, multiplication, and division operations, and the selected results are stored in the operation array; 2. Text boxes that allow users to enter the values to be calculated Number, the input result is stored in the num array; 3. Submit button to submit the form content. The form is submitted directly to this php page using the POST method
5.
Solution to the problem that cf cannot be full screen in win7. How to calculate the time difference between php and MySql
Introduction: The solution for cf not being able to full-screen win7: The solution for cf not being able to full-screen win7. How to calculate the time difference in php and MySql: Recently, when I was studying my love scarf, I had to calculate the number of days in love. This requires PHP to calculate based on the date of each day. Let’s talk about several methods to implement this date calculation: (1) If you have a database, it is very easy! If you have MSSQL, you can use triggers! Use a function that specifically calculates the date difference. Just use datediff()! If it is MYSQL, then use the difference between the two date fields to calculate the calculation result and save it in another numerical field! Just call it when needed! (2) If there is no database, then you have to use PHP completely. Time and date function! The following are mainly6.
Several methods of calculating the time difference in php for the 2014 Zhejiang Provincial Civil Service Examination registration time Introduction: 2014 Zhejiang Provincial Civil Service Examination Registration Time: 2014 Zhejiang Provincial Civil Service Examination Registration Time Several methods for calculating the time difference in PHP: A simple example is to calculate the number of days to borrow books, which requires PHP to calculate the time difference according to each day To calculate the date, let’s talk about several methods to implement this kind of date calculation: (1) If you have a database, it is very easy! If MSSQL can use triggers! Use the function datediff() that specializes in calculating date differences. ! If it is MYSQL, then use the difference between the two date fields to calculate the calculation result and save it in another numerical field! Just call it when needed! (2) If there is no database, then you have to use PHP's time and date function! Below Main explanation: Example: Calculate 7. 0x00000050 computer blue screen code php code to obtain the size of a certain directory Introduction: 0x00000050 computer blue screen code: 0x00000050 computer blue screen code php gets the code for the size of a certain directory: the general idea of the program is to use recursive rules to calculate how much space the directory occupies, and then write the value of the space occupied into a text file, then As long as you access this txt file, you will know how much space it occupies. You don’t need to read the disk frequently, which saves resources. Every time the user uploads a file or deletes a file, statistics will be calculated again. Of course, the statistical results can also be saved to the database. . Copy the code as follows: function countDirSize($dir) { $handle = opendir($ 8. php recursive directory traversal_PHP tutorial Introduction: php recursively traverses the directory. ?php class listdir{ var $depth; var $dirname; var $list; var $tostring; function listdir($dir){ $this-dirname=$ dir; $this-depth=0; $this-tostring=; } //Save the result into a multi-dimensional array 9. CodeIgniter’s caching mechanism and usage_PHP Tutorial ## Introduction: CodeIgniter’s caching mechanism and usage. Database cache The database cache class allows you to save database query results in a text file to reduce the need to activate the cache. Three steps: Create a writable 10 on the server. php program to get all files in a directory and save the results to an array_PHP tutorial
Introduction: PHP program to obtain all files in a directory and save the results to an array. Sometimes at work, we need to batch process files in a certain directory. At this time, we need to find all the files that meet the conditions in the directory and save them to a [Related Q&A recommendations]: javascript - Express + EJS How to enable page caching linux - /bin/bash -x What means? pyspider +mongodb How to specify the collection name for multiple crawler results
The above is the detailed content of 10 recommended articles about saving results. For more information, please follow other related articles on the PHP Chinese website!