I. PHP annotation Method
1. // (single line comment) 2./**/(multi-line comment) 3. # (mostly for Unix SHELL) 2. Embedding Method
You can specify it by yourself. Generally
// Recommended 3. Reference File
Include and require
1.
Two days ago, I worked with my colleagues to develop an inventory management system. I was responsible for writing the page program, and my colleagues were responsible for writing the stored procedure. When writing the program, everything went
localhost1 root 123 load ("config. xml "); $ roots = $ doc-> documentElement; // get the root node, that is, config (only one) $ childs = $ roots-> childNodes; // obtain all the child nodes under the root node, namely db smartyfor ($ I = 0;
[Php] $ class) {$ this-> $ var = & load_class ($ class);} // load the Loader component to the super controller, this component is a good helper. // you often use $ this-> load-> xxx () to load something, // This load occurs when the controller is
{Template "content", "header"} calls the phpcms \ template \ content \ header file under the root directory
{CHARSET} character set (gbk or UTF-8)
{If isset ($ SEO ['title']) &! Empty ($ SEO ['title'])}{$ SEO ['title']} {/if}{$ SEO ['site _ title']}{
Today, I encountered the problem of using drupal to output a user name, which was output by the theme function of drupal. So I searched for the information and found out the following content:
1. theme ('username', array ('account' => $ log) calls a
I found some methods on the Internet to execute PHP scheduled tasks in WINDOWS. One of them was completely written, but unfortunately I did not pass it. Finally, I had to combine the methods of various schools to make the operation successful.
1.
For php, I personally feel familiar with array and string operations. It is basically an entry. php itself has a lot of functions for operating arrays and strings,When creating a function today, you need to use Js to dynamically create store
Let me summarize what I learned ~How to get the data primary key: $ goods_model-> getPk ();Two ways to instantiate a data table: new Model (); M () shortcut: the shortcut occupies only one memory, and the first method increases the memory storage
The autoLoad name cannot be the same as other scripts!Do not use comments, such //Embedded PHP variable: '". $ params ['sdate']."'The values in Other HTML must be enclosed in double quotation marks !!!!
Yii: app ()-> clientScript->
Java Timestamp and PHP timestamp conversion problem: JAVA timestamp length is 13 BITs, for example: 1294890876859The PHP timestamp length is 10 characters. For example, the last three digits of 1294890859 are different. The JAVA timestamp is used in
Today I learned a very amazing css layout method.
Position: absolute;Top: 61px;Bottom: 0px;
After the position is set to absolute, top is the top side, left is the left side.
So if you change the bottom side to 0, will it become window self-adaptive?
This article is a detailed tutorial on PHP file operations. It is very detailed and comprehensive. I would like to share it with you and hope it will be helpful to anyone who has learned PHP development.
The Code is as follows:$ Path1 =
# Include # include # include using namespace std; int vis [5000]; vector map [5000]; int ans; void dfs (int k, int num) {vis [k] = num; // number of each node for (int I = 0; I 2 & tmp> ans) ans = tmp ;}} int main () {int n, m,, b, c; int cas;
1. array_chunk () Splits an array into new array blocks. The number of units in each array is determined by the size parameter. The number of units in the last array may be smaller.Example$ A = array ("a" => "Cat", "B" => "Dog", "c" => "Horse ", "d"
Daemon is a special process running in the background. It is independent of the control terminal and periodically executes a task or waits to process some events. Daemon is a very useful process. Php can also implement the daemon function.
1.
1. Purpose$ CATEGORY is a two-dimensional array mainly used to save the basic configuration information of the current channel or module.
2. How to SetYou can log on to the background to go to the module or channel topic management, and modify any
/*** Using CJuiDialog to edit rows in a CGridView http://www.yiiframework.com/wiki/204/using-cjuidialog-to-edit-rows-in-a-cgridview translated by php attacker http://blog.csdn.net/phpgcs Scenario Solution Column hyperlink Javascript 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