Page static, mainly for two aspects of consideration.
First: The speed of accessing HTML pages is faster than accessing PHP pages. PHP needs to be parsed when accessing the PHP page. When accessing HTML, the direct browser can parse it out. In
It is recommended that the Web only upload function, read, processing or backstage bar. Phpexcel is still more time-consuming and memory-intensive.
Instance code:error_reporting (0);
Require_once ' phpexcel_1.8.0/classes/phpexcel.php '; Modify the
First, what is push technology
As people become more familiar with the web, people want Web applications to be able to receive messages in real-time, just like local apps, so there's so-called "push technology." What we call server Push, or
A set of systems based on thinkphp3.1, using the MVC model
There is a section of code below that is the HTML file in the TPL,
{"Data": {"Total":
, "page":
, "songs": [
{"id":
, "createtime": "
", " Singer ":"
"," Songname ":
Forum each section in the database corresponding to a record, one of the fields (posts) used to count the number of posts in the section, how to maintain this posts field?
1 if the user posts/deletes the post to update the field, that is, post
Because PHP is a scripting language, so its excessive flexibility, it will lead to ambiguity in parsing, in general, we want to avoid these ambiguities, here to give a small example, friends may wish to see the following code will output what:
The problem is that payment can be paid successfully, but will generate two order numbers, resulting in the inability to go to the nuclear list, please God to see what is the problem
Reply to discussion (solution)
No great God to help me?
Xhprof is an extension of testing PHP performance developed by Facebook, and this document describes how to use Xhprof for PHP performance optimization in PHP applications to find performance bottlenecks.
Installing the xhprof Extension
$ wget
Learn to write code when you find that changes in the data when the MySQL is not in the update will also return to the implementation of the success of this time to use SQL query to determine the existence of the data?
Reply to discussion
Words: Comments table, where message_user_id is the Where condition
Where message_id needs to get the title of the corresponding ID in the messages table
Where user_id needs to get the name from the users table
Seeking SQL statements
Reply to
The httpd-vhosts has been enabled in httpd.conf,
The hosts have added
127.0.0.1 newtest.net
Configured in the httpd-vhosts.
DocumentRoot "f:/myphp"
DirectoryIndex index.html index.htm index.php
Options FollowSymLinks
AllowOverride None
For example, there is a table with an ID name content
Well, I don't have to go through some of this content.
Spread out into 10 tables?
Want to know if a table is more efficient or unnecessary if it is compared in a small number of levels?
$conditin = ' 8>0 ';
if ($conditin) {$value = 1;} else {$value = 2;}
$conditin came in from outside.
How do you judge that it is a normal conditional statement and let it execute?
If $conditin = ' 3 is greater than 1 ' then the conditional
PHP written in a concise test list, used to write the HTTP interface, the PC and client communication, put on the disk is also wasted, so there is a need to download, the following is, only to achieve a simple addition, modification, editing
PHP Novice to ask you a question, has now been captured from the database by recursion all subordinates of an employee (including subordinate subordinates), Print_r ($sub) effect is as follows:
Array ([0] = User Object ([userId] = 365 [name] = AA [
RT, my side of the project to be done to colleagues, his side open and my side of the effect is different, the most obvious difference is that our table table row spacing is smaller. But we are all ie10, all of them are Win7 systems.
This situation
A Select 40 minutes:
1. An operating system uses paging storage management, and gives the page table structure of process A and process B. If the size of the physical page is 512 bytes, then a total of __ bytes is used for process A and process B's
1. Use of stress test AB learning
Use the software and commands that are used by Linux, this is the command
Request per second to be possible large implementations of large concurrencyTime per second is likely to be small, small means faster
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