First, PHP system functions
Function
Function
Usage
Var_dump ()
Print variable structure information, including type and value. Array will recursively expand values
Var_dump ( $arg1...);
Header (' Content-type:text/html;charset=utf-8 ');Date_default_timezone_set (' PRC ');/*** File information related API*/$filename = "./test1.txt";$filename = "Test";FileType ($filename): Gets the type of file, returns the type of fileecho ' File
${} for reading, extracting and replacing strings, you can use ${} to extract the string 1, extract the file name [[email protected] log]# Var=/dir1/dir2/file.txt[[email protected] log]# Echo ${VAR##*/}FILE.TXT2, extract suffix [[email protected]
The first knowledge of internationalization and resourcebundle is mainly used to solve internationalization and localization problems. Internationalization and localization are not two concepts, both of which appear together. It can be said that the
This paper summarizes and analyzes the processing method of PHP file system. Share to everyone for your reference, specific as follows:
File type
With Linux as a model, only three types of file, dir, or unknow can be obtained in WindowsUnder Linux/
PHP's handling of files
PHP in the application of server-side files, the relevant category is not only the user and server database of various connection access operations, can also be built through PHP file processing functions, for general file
However, in doing so, there is no way to do some statistics, permission checks, etc. work. So, a lot of times, we use to make PHP to do forwarding, to provide users with file downloads.
Copy Code code as follows:
$file =
Generating control filesPreparatory work:sql>set colsep '; -Field output delimiterSql>set echo off; Displays each SQL command in the script started by the start, which defaults to onsql> set echo on //Set whether the Run command is to display
Javaweb Study Summary (31)--Internationalization (I18N) Overview of international developmentSoftware internationalization: When software is developed, it should be able to respond to different regions and countries in the world, and provide
Funny Summary of common PHP file operations functions the following is my summary of PHP file operation functions. Of course, this is only part of it. There are many other parts that I have not listed. 1. Resolution path: 1 get the file name:
Simply tidy up the PHP path functions that you often use in your work1,basename ($path, $suff): Returns the basic file name, if the end of the $suff is removed$path = ' E:\centos\index.php '; Echo basename ($path, '. php '); IndexEcho basename
Shell Common commands
1. ls: similar to the dir command in dos
The most common parameters of ls include-a-l-F.
Ls-
Linux Files. files starting with ls are regarded as hidden files and cannot be seen only by using ls commands. In addition to
LAMP refers to the web servers built in Linux (operating system), Apache (HTTP server), MySQL (database software), and PHP. This website architecture is currently a popular and common Web architecture. It has advantages such as LAMP cross-platform
Provides various official and user-released code examples. For code reference, you are welcome to exchange and learn. In general, we can direct the URL to a file under the Document Root to guide users to download files.
However, in this way, we can'
/D: represents the date, in the format of weekday month date, for example: "Mon Aug 1"/H: complete host name. For example, if my machine name is fc4.linux, this name is fc4.linux./H: only the first name of the host. In the preceding example, the
During program development, users often encounter the need to upload images to generate small thumbnails. Because the length and width ratios of the images uploaded by users are different, it is a problem to display the small images neatly on the
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.