Introduction to the official website:
The most lightweight PHP database framework that can speed up development
Why choose Medoo and its main features:
Lightweight – Single file, only 20KB
Easy to use – very easy to learn
We download the program on the Internet, there are many and do not install the program, but we need to manually modify the database configuration file some also need a website path such as domain name, the following by the charm of the network for
Connect to a database (traditional method)Mysql_connect ("Lcoalhost", "Root", "" "); Connect the native database, connect the external machine localhost can be changed to make IP address mysql_select_db ("Txst", $db); Select the
Display page (user visible)//Data received from this page to the Chuli page for processing Nationality Code: //Create a div and put in the receiver to receive the code value Nationality Name: //Create a div and put in the receiver to receive the
Global variables/* $a = 10;Function Show (){$a = 1;Global $a;//define a $ A as a globals variableecho $a;}Show ();Var_dump ($_server); * *For forms1, $_post//submitted POST value $_get//Submit Get value $_request//Submit Get or POST valueVar_dump ($_
Array:Features:1. can store any type of data 2. can be discontinuous 3. can be an index, or it can be associated. The first way to define an array (define a simple indexed array)$attr =array (a);The second way to define an array (assignment
In order to let you PHP beginners can better learn PHP, today to share some of the PHP learning route, very suitable for PHP beginners learning line and advice. The article is as follows:We want to have a gradual learning process, here first to
Array_rand () is useful when you want to remove one or more random cells from an array. It accepts input as an input array and an optional parameter, Num_req, indicating how many units you want to remove-if not specified, the default is 1.Array_rand-
The process of learning PHP, sorting out some of the commonly used functions, which are array functions.Array (): Generate an array$a = Array ("Dog", "cat", "horse");Print_r ($a); Array ([0] = dog [1] = cat [2] = = horse)Array_combine (): Generates
Each time you install PHP development environment is always more or less confused a bit, today to comb the relationship between apache,php (according to http://www.ituring.com.cn/article/128439, Add. )Both 1.apache and PHP are compiled by Visual
Did you say 520 today? There are not only php confession books but also java confession artifacts, 520 java
Let's take a look at the confession artifact. Click here to download it!
It's better to zoom in these sensitive details and write them in
[HOOLOO] zizaco/entrust 5.2.x-dev Class name must be a valid object or a string, hooloozizaco
Run php artisan entrust: migration on laravel 5.1 permission management and zizaco/entrust 5.2.x-dev. the following error is reported:
[Symfony \
How to add data in batches in Yii2 and add data in batches in Yii2
Batch add this operation is often used in actual development. Today, I will take the time to sort out some questions about batch add in yii2. Let's take a look at it with interested
In the CI framework, $ this-> load-> library () usage analysis, this-load-
This article analyzes the usage of $ this-> load-> library () in the CI framework. We will share this with you for your reference. The details are as follows:
I failed to
Php Exception Handling and php exception capture
The try {thow} catch () {} Exception Handling structure can effectively control multiple lines of code that may cause exceptions. The basic model is as follows:
getMessage (); // output the error
PHP implements encryption and decryption, and php implements encryption and decryption.
This example describes the encryption and decryption processing class implemented by PHP. We will share this with you for your reference. The details are as
A quick solution to Chinese garbled characters in Linux php,
Php webpage output garbled characters in ubuntu, without involving database encoding:
Modify "/etc/php5/apache2/php. ini"
Default_charset = "iso-8859-1"
Change
Default_charset = "UTF-8
Configure wnmp in windows and wnmp in windows
Recently, I tried to configure nginx + php + mysql in windows. Here is a summary.
1. Download nginx for windows. Official Website: http://nginx.org/en/download.htm. download it and decompress it to
Php automatic form submission method (based on fsockopen and curl), fsockopencurl
This example describes how php automatically submits forms based on fsockopen and curl. We will share this with you for your reference. The details are as
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