Php operations on mysql and phpmysql
1. Procedure: 1. connect to the MySQL database 2. determine whether the connection is successful. 3. select database 4. set Character Set 5. prepare SQL statement 6. send an SQL statement to MySQL 7. parse the
Phpcms, phpcmsv9
In cms, the conversion time inputtime is converted from the timestamp to the time:
{Date ('Y-m-d', $ val [inputtime])}Show all sub-columns. Among them, 62 63 65 indicates the catid of the sub-column.
{pc:get sql="select * from
Automatic loading of PHP files _ autoload (),
If a class needs to be used in multiple scripts, You can encapsulate the definition code of a class into a single file, which is also called a class file, load the entire file!
During PHP Execution,
Sphsf-full-text search engine,
I just learned about it today and I will share it with you directly. Some of them have not been contacted yet. please correct me if you have any questions. Thank you.
What is sphinx?
Sphinx is a full-text search engine.
Using the PHP filelock to write multiple requests to concurrently write to one file requires no dirty reads and no data loss,
You can use the PHP filelock to write multiple requests to concurrently write data to one file without dirty reads or data
PHP Object-Oriented Programming and php Object-Oriented ProgrammingAccess Control
Public: it can be accessed in the class, subclass, or outside the class.
Protected: It can only be accessed in the class itself and its subclass.
Private: only access
PHP design mode: factory mode, php design mode Factory
Similar to the singleton mode, the Factory pattern mode is another creation mode.
Unlike the singleton mode, Singleton mode creates and manages a single object of a single type, while the
Add the verification code plug-in and the Thinkphp Verification Code plug-in to thinkphp.
The principle and purpose of the Verification Code are well known.
Today, we will add the verification code plug-in to the tp framework.
We have added composer.
PHP design mode: Singleton mode and PHP design mode
The most difficult thing to learn about design patterns is to understand what design patterns apply to what scenarios.
Singleton mode is a creation mode that limits applications so that they can
PHP basics-array and data structure, php array data structure
Three features of strong language: 1. Only data of the same data type can be stored in the array. 2. The length of the array is fixed. 3. It is continuous in the memory.
I. array
Redis (How does MySQL and redis work together ?), Redismysql
Beginner:
Redis is also a server. It is mainly deployed on the server to relieve the pressure on the server. For high-traffic data, it can be cached to redis first. When users access
CI framework analysis (II) and ci Framework Analysis
This article continues the previous article: Analysis of the CI framework (I)
In the core library of the CI framework, CodeIgniter. php loads all required class libraries. The first one is the
[Linux] PHP programmers play with Linux series-Upgrade PHP to PHP7 and linuxphp7
1. PHP programmers turn to the Linux series-how to install and use CentOS
2. PHP programmers play with Linux series-lnmp Environment Construction
3. PHP programmers
Configuration of the PHP environment in mac OS environment, macos
Recently, I am looking at php. Today I have learned about the php environment configuration and Baidu materials, which is simple and convenient.
First, you need to prepare:
Apache
PHPCMS notes play 2, PHPCMS notes
You can use PHPCMS to insert templates and convert static sites to dynamic sites. It is good to add more exercises.
Separate the headers and tails of index.html and place them in the header.html and
Basic php knowledge
// Single line comment/* Multi-line comment */Echo "hello world", "php hello"; // (most commonly used) Output Mode 1, which can output multiple stringsPrint "hello"; // output method 2. Only one string can be output.Print_r (); //
Clever bit operation design and clever operation designBitwise operators
Example
Name
Result
$ A & $ B
And (bitwise And)
Set the bits of $ a and $ B to 1.
$ A | $ B
Or (by bit Or)
Set any one of $ a and $
Composer use notes, composer notesInstall 1. Install Composer in windows
In general, there are two ways to install composersunder windows. One is to directly download and run composer-setup.exe, which seems difficult to install in China. Download
Phpcms, phpcmsv9Outline
1. Design2. Static Design Drawings3. Start CMS Installation4. Put the template file in CMS.5. Replace path and content
Details list of main content usage
Homepage --index.html
Top part --header.html
Basic --footer.html
Phpcms notes, phpcms
The first step is to divide the home page into three parts: the navigation part, the tail part, and the middle part of the home page use three different files header.html; index.html; footer.html
Before using phpcms, you must
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