Of course, the premise is to open the CDN in a function reload_into_ims on. So the user sends over No-cache also not afraid of. Because this will give No-cache to If-modified-since. So we write the program is mainly to If-modified-since control.
Problem: For example, implement the following
$data = Array (
' id ' = $_post[' id1 '],
' Name ' = ' $_post[' name1 '
);
$posts = $this->_modelstudent->findall ($data);
The text box with ID name on the page can enter the ID query or enter the name
This script is used to enter a password for the user and to determine if the password is correct.
If it is correct, go to the Welcome page.
if ($login) {
Include (".. /include/config.inc.php3 ");
Session_Start ();
$right _enter= ' 0 ';
$query =
$len represents the length, the code is as follows:
Copy the Code code as follows:
/*** Generate random string** generates a random string of a specified length and returns it to the user** @access Public* @param int $len The number of bits
Sometimes a penny is hard to die, Hero Han,
That's not true.
It is also technically the same, such as the system commissioning for half a day,
PHP just doesn't recognize MySQL,
In the end, just forget to install Php5-mysql,
Minibb because of
page.php
Copy the Code code as follows:
/*** * Generic PHP paging class. (Imitation Google style)* * Simply provide two parameters for the total number of records and the number of displays per page. (Detailed usage instructions are attached.)* *
Copy the Code code as follows:
PHP iterates through all the files in the folder$handle =opendir (' c:\\ '); I'm going to traverse the C-drive file.echo "Catalog handle: $handle";echo "File:";while ($file =readdir ($handle)) {$file =iconv ('
For the Cd2sc.com website features developed, the code for my original, generation speed generally.
(For well-known reasons, the data field name involved in the database has been changed and the part of the parameter filter has been removed for code
The time format is 2008-06-16
Check out the Day data:
SELECT * from ' table ' WHERE date (time field) = Curdate ();
Query out the Month field:
SELECT *
From ' table '
WHERE Month (time field) = Month (now ());
The time format is 1219876 ... Unix
There are some features not added to, such as automatic renaming, image processing and so on. You can add them as needed.
Use:
$up = new Upfile (root_path. ' data/'. Date ("Ym", Time ()), array (' gif ', ' jpg ', ' jpeg '), true);
$fileimg =
The existence of a preface question
Scripting Security is a matter of functions and variables, from the code level, which is the application hierarchy that takes code security into account (i.e., a vulnerability that does not take into account
In fact, PHP gzip decompression is very simple, with the built-in Gzdecode function can be, but unfortunately I configured half a day can not support the Gzdecode function, so have to make a flexible:
Copy the Code code as follows:
if
Problem
How can you easily and conveniently build such "complex" objects that do not need to paste the copy in the operation?
Workaround
Build a factory (a function or a class method) to create a new object. In order to understand the utility of the
Careful friends must have noticed that the last time a PHP page passed the parameters of the topic there is a program:
I used the post for the method, but why not use the Get method?
Let's take a look at the difference between post and get
The most basic way to page paging:
SELECT ... From ... WHERE ... ORDER by ... LIMIT ...
In the case of small amounts of data, such SQL is sufficient, and the only problem to be aware of is that the index is used:
For example, if the actual SQL is
So I joined in the program: mysql_query ("SET NAMES GB2312"); the problem is solved. is mainly a coding problem.
Note that the insertion position of this code should be inserted before the code that displays the data, otherwise it will be
When we use query statements, we often have to return the first few or the middle of a few rows of data, this time what to do? Do not worry
MySQL has provided us with such a feature.
SELECT * FROM table LIMIT [offset,] rows | Rows Offset Offset
The
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