The ultimate goal of PHP is to create pure HTML files, and this pure HTML file is stored in the server's disk;
PHP implementation of the page to achieve pure static things:
1. File Write function
File_put_contents (), or fopen (), fwrite (),
Summary XML read configuration file easy way normal way PHP parsing XML configuration file resolving database connection pool test request is full after rejecting request is filled in summary
Summary
Before always in the script-oriented way to
use define () unless you consider readability, class constants, or focus on micro-optimizations
In PHP, it is customary to use the Define () function to define constants. But starting at some point, PHP can also use the const keyword to declare
Configuration database file: config/databases.yml
Schema file: config/doctrine/schema.yml
1. Generate schema files from the specified database:
$ php symfony Doctrine:build-schema
2. Generate model class According to schema file:
$ php symfony
Original address: Nginx cannot parse the PHP solution0x00: Problem description
When you access the *.php file, the contents of the file are not displayed, but the files you want to access are downloaded directly, such as index.php.
0x01: Solutions
::
The starting point for using the single case pattern:
1, the application of PHP is mainly in the database application, so an application will have a large number of database operations, the use of single case mode, you can avoid a large number of
Linux Environment installation PHP fileinfo extension
Windows Environment installation extension is relatively simple, just copy the DLL to the extended directory, modify the corresponding extension in the php.ini.
The following is an
PHP has a very simple garbage collector that will actually garbage collect objects that are no longer in the memory range (scope). The internal way of garbage collection is to use a reference counter, so when the counter reaches 0 o'clock (meaning
requirements: Just log in to the file. (Log System First Edition
)
/** * Log System First Edition * @author ranping */class Logmodel {private $logId;
Private $operateUser;
Private $operateTime;
Private $logContent;
Public Function Getlogid (
To clarify the idea:
Two concepts are introduced: block and slice (chunk). Each block consists of one or more slices, and a resource consists of one or more blocks
Blocks are permanent data storage units on the server side, and slices are only
1. First cut the original text in the manual
Basic Usage
assigning values
Assignment (current scope)
session::set (' name ', ' thinkphp ');
Assignment to the "Session::set" Scope
(' name ', ' thinkphp ', ' I ');
To determine whether there
Good tools are important for developing Web projects. I have to use PHP for project development. PHP in the development of more than the use of tools, but think Zendstudio development more comfortable. In the configuration of Zendstudio encountered
PHP has many extensions, and we didn't have some extensions installed at the time of the initial installation, and we might need to use these extensions in the process. PHP provides a phpize tool for us to install the required extensions.
The
In the front I have studied the mod_php mode in PHP and the mode_fastcgi and PHP-FPM mode: address, which roughly tells the difference between several modes, and also understands that PHP-FPM is the manager of fastcgi mode. Let's take a look at how
The following is the deployment of PHP 4 configuration change instructions, one for each study.
1, Short_open_tag is what it is.Determines whether to allow use of the abbreviated form of the Code start flag (?>).
If you want to use PHP in
CentOS after the mysql+apache+php, found that some of the pages open is blank.Will php.ini inside the parameters
error_reporting = E_all,display_errors = On,display_startup_errors = On
After setting, the error reason Fatal error:call to undefined
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