I am always eager to put the blog home page in a file, and the result is in the file. when the blog is updated, I will re-write the content to this file. So I tested three common methods for reading text. the homepage is about 3 kB, which is tested
Sometimes variable names bring great convenience to programming. That is to say, the variable name can be dynamically named and the variable can be named using the following statement:
The code is as follows:
$ A = 'hello ';
?>
A variable name
Two days ago, a friend asked me to help him write a simple PHP code that collects form content and writes files. due to my recent busy work, I have no time to write it, today, I finally took some time to complete this task. next I will open-source
Register_globals is a configuration in php. ini. this configuration affects how php receives passed parameters. if your question is: why cannot my form transmit data? Why can't my program get the passed variables? Wait, so you need to carefully read
This day I met A requirement: Because these systems are upgraded from database A to database B, but I don't know which fields and tables have been added to the database, I can go to PHPMYADMIN to view them. But there are omissions after all. So I
Previously, to delete an element from an array, I used unset directly, regardless of what happens after unset. But what I saw today surprised me.
The code is as follows:
$ Arr = array ('A', 'B', 'C', 'D ');
Unset ($ arr [1]);
Print_r ($ arr );
The array processing function of PHP can also implement the queue of arrays, and the stack is "advanced and later ". In the stack, the final pushed data (into the stack) will be first popped up (out of the stack ). The queue is the
The author has encountered many Page modifications by users, so in the case of trouble, he switched to php for technical development. This article mainly records the simple functions of PHP and tells the simple and clear function syntax of PHP,
This article details the usage of Content-disposition in phpheader. if you need to know the usage of header, refer to Position.
Content-disposition is an extension of the MIME protocol. The MIME protocol instructs the MIME user agent how to display
Php forms are submitted and then rolled back. The content of the form is cleared by default (when session_start is used). The solution is after session_start, write the header (Cache-control: private) before the character output. The php form is
The daily environment is composed of countless entities: plants, groups, transportation tools, food ...... It takes a few hours to list them. Each entity is defined by a set of properties and actions. for example, a vehicle can define properties
Php implements the factory design mode and implements the interface. on the surface, the interface is useless because php automatically converts the type. The interface can be used to constrain the definition of the class, so that consistent access
I am often asked if the PHP array is accessed using foreach, is the traversal order fixed? In what order does it traverse? As shown below, Laruence often asks me if the PHP array is accessed using foreach. is the traversal order fixed? In what order
I am interested in studying the encryption methods and principles of PHP. I can't say that I can't encrypt it. I just used URL encoding and BASE64 encoding for conversion.
The code is as follows:
// Differentiate the numbers 0 and the characters O"
Today, I helped the customer configure the server. when accessing php, the system prompts PHPParseError: syntaxerror, unexpected $ end error. I found the problem through searching. I would like to share with you how to write the php program in the
For php Security, use $ to GET the value without escaping the $ _ GET character. For more information, see
The code is as follows:
Function my_addslashes ($ string, $ force = 0 ){
! Defined ('Magic _ QUOTES_GPC ') & define ('Magic _ QUOTES_GPC'
Php code for inserting one element into a two-dimensional array in reverse order. For more information, see
The code is as follows:
/**
* Insert an element into a two-dimensional array in reverse order
*
* @ Author WadeYu
* @ Date 2012-05-30
*/
$
After nearly a month of research on MVC, I have also obtained guidance from some friends on the Internet and developed my own MVC process and framework. However, I feel that there are still a lot of limitations and I still lack flexibility, but I
File operations in php are much simpler and more powerful than asp operations. For php learners, refer to the following simple example:
The code is as follows:
If (! Is_dir ('txt ') // determines whether the txt file is a folder
I will write down my favorite and interesting topics and share them with you. The last time I wrote an article "talking with the boss in php". I still have a lot of questions. This book helps me to click on the mind map to see the big
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