following the previous articleOne of the technical notes of the "developed micro-e-commerce website"
, yesterday did the function of log processing.
for today's applications, the importance of logging is self-evident. It is hard to imagine an
CTRL + R = Enter drivers Carriage return = etc/hosts, open it with Notepad, in 127.0.0.1
Add a line under localhost, 127.0.0.1
d.cn save is OK. What would you like to change into something, like baidu.com or Hello.world?
http://www.bkjia.com/PHPjc/
Class Concept: A class is a collection of objects that have the same properties and operations. It provides a uniform abstract description of all objects that belong to the class, including properties and operations in two main parts. In an
For today's applications, the importance of logging is self-evident. It is hard to imagine an application that does not have any logging capabilities running in a production environment. Logs can provide a variety of functions, including the
thinkphp Query MSSQL Database garbled reason is thinkphp default to UTF-8, and Msmsql database is Simplified Chinese version, stored is GB2312 encoding
Workaround:
1: Open Db.class.php in Thinkphp\lib\core, add it at the back2: Find function Select
The data processed by the program is not always pre-designed with database thinking, or it cannot be stored with the structure of the database.such as template engine parsing template, garbage sensitive information filtering and so on.In general, we
In the project development, some architecture and code are duplicated, in order to avoid duplication of work, so a variety of frameworks were born.
in PHP development, choosing the right framework helps speed up software development, saves valuable
Hong Sing (Comsenz) launched the Manyou Open platform (official experience Address: http://uchome.developer.manyou.com) and third-party developers for all of the Ucenter home site for netizens to provide personalized Internet applications.
As you know, PHP is now the most popular Web application programming language. But as with other scripting languages, PHP also has several very dangerous security vulnerabilities. So in this tutorial, we'll take a look at a few practical tips to
This article mainly introduces the use of Baidu Ping Method example, you can automatically ping the website address Baidu, we refer to the use of it
When using the method access automatically ping to Baidu, my method is to generate the cache, update
To write a PHP import CSV file method, all can be implemented how to import.But I encountered two problems importing, one is to write code on the windows when the test has garbled problems, and then resolved.The second is when it was submitted to
1. Do not copy variables randomly
Sometimes in order to make the PHP code more neat, some novice PHP (including me) will copy the predefined variables into a shorter name of the variable, in fact, the result is an increase in memory consumption,
As PHP transforms from a simple scripting language into a mature programming language, the complexity of a typical PHP application's code base increases. To control the support and maintenance of these applications, we can use a variety of test
First, to determine whether PHP is TS or NTS versionThrough Phpinfo (); Look at the thread Safety item in it, this project is to see if it is thread safe, if yes: enabled, generally it should be TS version, otherwise it is version nts.
Second,
PHP automatic loading autoload mechanism is very important, here do 2 small exercises original articles, reproduced please note: HTTP://WWW.CNBLOGS.COM/PHPGCS file structure as follows, 2 ways to implement automatic loading 1, custom Function
Php-Some methods of performance optimization
0. It is quicker to use single quotes instead of double quotes to contain strings. Because PHP will search for variables in a string surrounded by double quotes, single quotes will not, note: only echo
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