Ways to enable and deactivate a site
A2ensite Site name A2dissite Station Roll Call
Name-based virtual host (distinguished by domain name)
After installing Apache, there is a virtual host called default. When you create a new virtual host, you can
1 Find the character position function:
Strpos ($str, Search,[int]): Find the first position of search in $str starting with int;
Stripos ($str, search,[int]): function returns the position of the first occurrence of a string in another string. This
While
(PHP 4, PHP 5)
The while loop is the simplest type of loop in PHP. It behaves the same as while in the C language. The basic format of the while statement is:
while (expr) statement
the meaning of the while statement is simple, and it tells
Short link, in layman's terms, is to convert long URL urls into short URL strings through program calculations.
In this case, the advantages are: 1, content needs, 2, user-friendly, 3, easy to manage.
Early short links are widely used in image
Now in Wangjing, thank you.
————————————————————————————————————————————————————————————---—————————————————————————
Everyone is very good, the direction of the small woman is to do Internet products, before more than six months of internship
When I executed get_defined_constants (), I accidentally found that PHP had an internal constant with the name true, a value of integer 1, and a constant known as false and null.
Does PHP handle true as a constant? Isn't it supposed to be a "value"?
I see some movie sites, such as a movie station inside the ABC resources in a station inside the search bar can be found but now through the Baidu directly search ABC can be found out of a station inside the ABC resources do not have to go to a
1, the use of Laravel auth verification
2. Change the model in configuration auth.php to Appmodelsadminuser::class (because it is the login authentication of the background user)
3, in the page with Ajax call Background login method, the main logic
How PHP calculates the sum of the data in a field of MySQL
Reply content:
How PHP calculates the sum of the data in a field of MySQL
phpUse foreach traversal to accumulate the fields you want to sum
mysqlcan be used SUM
SELECT
Problem scenario: Transcode files with FFmpeg.
Problem Description: Use PHP to implement transcoding with three methods called Terminal ffmpeg via exec (), PassThru (), System ()
The code is as follows:
To run this PHP file in the terminal, it
Not much to say, your own code on the line, you can directly to use.
/** * Calculates the distance between two coordinates (m) * @param float $fP 1Lat starting point (latitude) * @param float $fP 1Lon Start (longitude) * @param float $fP 2Lat end
This blog is about how the client encapsulates the HTTP protocol, and how the client uses the Post,get method is one of the most core code
The following is an excerpt from Huangshijun's Android and PHP development
Package com.app.demos.util;
Import
Some people on the internet say that SQL statement execution error or program error after opening a transaction without executing rollback, the next run will automatically commit
Program error does not roll back rollback
However, some people say
Build PHP Runtime Environment tool with one click
1.APMServ
http://apmserv.s135.com/
Domestic research and development, powerful, simple operation, no need to install, just a little mouse, you can in their own computer fool automatically build a
The concept of a forward proxy
The forward agent, the legendary agent, works like a springboard,To put it simply,I am a user, I cannot access a website, but I can access a proxy serverThis proxy server, he can access the site that I can't
1, as a product manager with Axure prototype is one of the basic skills, but each time to copy the prototype files to copy, local view, the phone looks like a page, and so on, these are too low. Then tidy up the previously learned knowledge, decided
[Public]php version of analog login, push messages to specified users
There is currently no open push interface for public numbers. Impersonate the user login, can view the user message, reply the message and so on. The official has not declared
Calculate the sum of order quantities
$query_num"SELECT SUM(order_num) from hcf_order_db where order_id = XXX";$arr_qn = mysqli_query($dbc,$query_num);list($sum)=mysqli_fetch_row($arr_qn);
Calculate the sum of the order Amount
$query_amount"SELECT
Before the nonsense, the first statement, this article is based on the master PHP single file upload, so here do not repeat the file Upload server configuration, the form to set the attention of the place.
Not many words, straight into the topic,
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