Summary of 10 articles set in INI-php Tutorial

Source: Internet
Author: User
INI settings are the same as the Super global variables and persistent constants you saw in the previous chapter. php. the ini value must be defined in the extended MINIT code block. however, unlike other features, the definition of the INI option is only composed of a simple start and end line. PHP_MINIT_FUNCTION (sample4) {& amp; nbsp; REGISTER_INI_ENTRIES (); & amp; nbsp; & amp; nbsp ;... INI settings are the same as the Super global variables and persistent constants you saw in the previous chapter. php. the ini value must be defined in the extended MINIT code block. however, unlike other features, INI options are defined only by simple start/end lines. PHP_MINIT_FUNCTION (sample4) {REGISTER_INI_ENTRIES (); return SUCCESS;} PHP_MSHUTDOWN_FUNCTION (sample4) {UNREGISTER_INI_ENTRIES (); return SUCCESS ;} define and access the INI settings. The INI command itself is on the MINIT function in the source code file. use the following macro

1. [Translation] [php extension development and embedded] Chapter 13th-php INI settings

Introduction: 1. misunderstanding of frontend and backend separation in the Web application development process, the industry does not seem to have a definite concept of the frontend and backend line, however, most people use browsers as the front and back ends. The front-end part of the page displayed for users in the browser is called the front-end, and all the code that runs on the server and provides the business logic and data for the front-end is collectively referred to as the back-end. Although the frontend and backend separation has been concerned for a few years ago, many people only hear its voice and do not see it, so there are some misunderstandings about it, mistaken for front-end and back-segment separation as a Web application

2. php cyclically creates a new file and moves the file to the specified folder based on the file name to modify the file name.

Introduction: php cyclically creates a new file and moves the file to the specified folder based on the file name. modify the file name: write a php file and place it in the directory of the file you want to batch process. you can run the file to complete the following: check whether your file name is a timestamp and whether the php file in the file must be added! Do not delete it by mistake! Set_time_limit (0); // ignore php. the script running time limit set by ini $ q_array = my_dir ('. /'); $ q_array = str_replace ('. // ', '', $ q_array); $ a = explode (

3. PHP magic function application details _ PHP Tutorial

Brief introduction: PHP magic function application details. PHP provides two magic reference functions to facilitate data reference: magic_quotes_gpc and magic_quotes_runtime. if these two functions are set to ON in php. ini, they will be referenced

4. php modify the configuration file php. ini and set the file upload size. tutorial _ PHP

Introduction: php modifies the configuration file php. ini to set the file upload size. Open php. ini, first find; File Uploads ;;;;;;;;;;;;;;;;; region, which has the following parameters that affect file upload: file_uploads = on; whether to allow uploading files through HTTP

5. file_get_contents and curl function usage _ PHP Tutorial

Introduction: file_get_contents and curl functions. The file_get_contents () application is very simple, but some servers set php. ini. if allow_url_fopen is disabled, this function will become invalid. generally, it can be set on a personal server, but if it is

6. 3.12php _ PHP Tutorial

Introduction: 3.12php. This is my first blog to commemorate the first problem I saw. when the picture exceeds 1 MB, the following error may occur. of course, this is also related to php. ini settings.

7. use the GD library to draw a picture and generate a verification code. _ PHP Tutorial

Introduction: PHP uses the GD library to draw images and generate verification code images. PHP uses the GD library to draw a picture and generate a verification code Image. First, you must determine whether the GD extension function is enabled in the php. ini settings. The following is a test of print_r (gd_info (). If the output is as follows:

8. php. ini settings

Introduction: php. ini settings

9. several methods for setting the time zone in PHP

Introduction: The time zone of the php program should be set when the web server is installed. However, if you put the website abroad, the default environment is the local time zone, the content on your website needs to display our domestic time zone. at this time, we should modify and set the time zone. The following describes several methods for setting the time zone in PHP: 1. modify PHP. ini sets the time zone in php. date is found in the INI file. in the timezone line, remove the semicolon and change it to date. timezone = Asia/Shangh

10. set up the time zone in php. ini so that the date function does not appear in the warning

Introduction: php. ini sets the time zone, so that the date function does not appear in the warning php page for time-to-function processing: It is not safe to rely on the system's timezone settings. you are * required * to use the date. timezone setting or the date_de

[Related Q & A recommendations ]:

An error occurred while loading the smarty template for php in html-mac. Is it possible that it was set by php. ini?

The above is the summary of the 10 articles set up by INI. For more information, see other related articles in the first PHP community!

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.