The fopen () function is used to open the file in PHP.
The first parameter of this function contains the name of the file to be opened, and the second parameter specifies which mode to use to open the file:
The file may be opened in the
How to use:
mkdir (Path,mode,recursive,context)
Parameter description
Path is required. Specifies the name of the directory to create.
Mode required. Set permissions. The default is 0777.
Recursive required. Specifies whether recursive mode is
I believe that people like me, will often see and the following very similar PHP code:
$user = new StdClass (); $user->name = ' Gouki ';
What's the use of this code?Open the manual, search for Stdclass, you will find that the manual is almost no
This article is an example of how PHP array manipulation techniques are concerned. Share to everyone for your reference, as follows:
This is a simple PHP array entry question.
$STR = "AS5454654%^$%^$7675DHASJKDHH12U123123ASDASD";//will be above the
The examples in this article describe the multithreaded operations that PHP implements with Pthread. Share to everyone for your reference, as follows:
res = ' temporarily none, first run. '; $this->param = 0; $this->lurl = 0; $this->name =
This article analyzes the PHP page jump operation. Share to everyone for your reference, as follows:
Jump
Header () is a PHP function that sends the specified command to the browser
Html:
Jump Now:
Header (' Location:other.php
In general, you will rarely use PHP to execute Linux commands, but in special cases you may be using these functions. I used to know that there are two functions can execute Linux command, one is exec, one is shell_exec, through this article to
When you do a project with framework cakephp, you encounter the problem of creating a new database, and then connecting the project to the table in the new library, using Loadmodel (' testquestion '), and then $this->testquestion-> Usedbconfig = '
Use the Replace function, or PHP's Str_replace function, to replace the keywords in the content read in the template file with the contents of the variable, allowing for a simple separation of the templates.
Template file
In PHP, there is an available function for deleting duplicate elements in an array, which is array_unique (), but it is not the most efficient method, and using the Array_flip () function will be about five times times higher than Array_unique
This article introduces the implementation of user registration login function based on PHP, this project is divided into four parts: 1 front page production, 2 verification code production, 3 registration login, 4 perfect function. The specific
The multi-lingual support that was introduced from MySQL 4.1 is really great, and some features have overtaken other database systems. But I found in the test that using the PHP statement before MySQL 4.1 to manipulate the MySQL database can be
This program instantly led to my computer's CPU and memory soared, a look at the hard disk use space, also in the increase, now overwhelmed, can not find the use of hard disk space is it? Can not restore to the previous hard disk space size, I am a
In the site often generated tables, CSV and Excel are commonly used in the report format, CSV is relatively simple, if you have questions I will publish some examples of CSV, here is the main introduction of PHP to generate and read Excel
In the site user data statistics, we often need to get the type of user browser and operating system type, this article is mainly based on PHP to determine the client type, the need for friends can come to understand.
Method One:
/** * * Based on
Sometimes in the project we need to use PHP to encrypt specific information, that is, through the encryption algorithm to generate an encrypted string, the encrypted string can be decrypted by the decryption algorithm, so that the program to process
PHP Blowfish algorithm encryption and decryption for your reference, the specific content as follows
pkcs5_pad ($str, $size); if (Mcrypt_generic_init ($cipher, $this->key, $this->iv)! =-1) {$cipherText = Mcrypt_generic ($cipher, $STR); Mcrypt_
Code reuse
Include ()
Require ()
Both of these functions are used to refer to a file, except that the include () generates a warning when processing fails and require () is a dense error
Include_once ()
Require_once ()
These two functions are the
1. Iterating through an array
There are two common ways to iterate through an array, one for a for loop statement and one for a foreach statement traversal:
For Loop statement traversal: The FOR Loop statement can only traverse an array of
This is a busy day. No time to write. Write a few more on weekends.
Classes are currently supported in most languages.
What is a class? A class is an object-oriented, short-oop. English name Object Oriented programming.
What is object-oriented? is a
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