Guangzhou PHP Learning-brother even it education
University graduate, confused ignorance of the age, the direction of their own life do not understand, the university also did not learn what knowledge, really do not know the social profession which
Get_header () (Get head)
Introduce the theme of the header template, the default will be introduced in the current theme directory of the header.php file. If a name is specified, the header-{name}.php file of the current theme directory is
This example describes how Yii removes asterisks from required fields. Share to everyone for your reference, as follows:
How do I get rid of the asterisk in the required fields?
First analyze the following code implementation:
Public Function
PHP Five ways to read file contents
Share the Five ways PHP reads the contents of a file: All right, when you're done, you'll find that the files are not closed. In practical application, please pay attention to closing fclose ($FP);--
PHP Read
The advantages of Nginx relative to Apache:
A, lightweight, and also start Web services to occupy less memory and resources than Apache
b, anti-concurrency, Nginx processing requests are asynchronous non-blocking, and Apache is blocking type, in
The best time for programmers is coming (3)
Mobile development. Since mono, it is now available. NET to develop mobile applications, using Xamarin can develop iOS and Android programs that are identical to native performance in C #, I am also
Apply_filters () (Create filter)
The Apply_filters () function is used to create a filter, most of which is used in functions, is a very important function of the WordPress plug-in mechanism, allowing other themes and plugins to modify a value to
two days ago we shared a cookie in Java to record the page last access time method, today we come to talk about how to implement the cookie in PHP , you can choose according to their favorite language!
//Control page display encodingHeader
Object-oriented and process-oriented
The core difference between object-oriented and procedural programming is the assignment of responsibilities
The behavior of an over-programmed code is a sequential invocation of a series of commands and methods,
Directory[1] Code identification [2] note [3] output [4] calculation expression [5] case
Previous words
PHP is a powerful server-side scripting language for creating dynamic, interactive sites. PHP can contain text, HTML, CSS, and PHP code,
The example in this article describes the PHP custom paging class. Share to everyone for your reference, as follows:
each_disnums=intval ($each _disnums); $ This->nums=intval ($nums); if (! $current _page) {$this->current_page=1;}
Before a netizen put forward, in WordPress there is no way to achieve each article only allow users to comment once?
Temporarily do not say this demand has no use, after all, WordPress is for people with a variety of needs. This feature is also
The examples in this article describe how to use objects with advanced features of Smarty. Share to everyone for your reference, as follows:
name= "First Dog", $smarty->assign ("Dog", $dog 1), $smarty->display (' Test.tpl '); >
TEST.TPL file:
When using Naginx is an access log that is becoming huge and can reach the GB level, so we need to split,
I'm breaking it down by time.
#!/bin/bash# Access log file location nginx_path= "/usr/local/nginx/logs/" bak_path=
As a code farmer, why do we write?
In the field of programmers, people who insist on doing technical writing have been relatively small. After I communicated with my friends, I found that they were not aware of the benefits of writing, except for
According to a previous article, we know that the events of Yii2 are divided into two categories, one is class-level events, and the other is instance-level events. Class-level events are based on the yii\base\event implementation, and
Step 1. Install ICU Libraries with Homebrew
First we ll need to install any dependencies. To quote the Intl package Description:
"The internationalization extension exposes functionality of the ICU library to PHP".
The ICU Libraries is we
Original address: http://www.thinkphp.cn/topic/3228.html
Only need to modify 3 places to be able to, pro-test success, see the code has annotations
Location ~ \.php {#去掉 $
Root h:/phpserver/www;Fastcgi_pass 127.0.0.1:9000;Fastcgi_index
Time difference function
function tranTime($time){ $rtime = date("m-d H:i", $time); $htime = date("H:i", $time); $time = time() - $time; if ($time
Countdown days hours minutes seconds function
function
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