First, unzip the downloaded Uploadify compressed package into a public folder. The implementation code is as follows:
Foreground HTML section:
Upload
Action Execution Code section:
Public Function uploadify () {$ph =m (' Upload '); Import ('
The thinkphp query (that is, a multi-table union query) can use the table () method or the Join method, as shown in the following example:
1. Native Query example:
$Model = new Model () $sql = ' Select A.id,a.title,b.content from Think_test1 as a,
14. Construction page (batimentbuildingpage.php)
Now start to parse the real building page, there are a lot of functions, but it is not difficult, we look together.
First check the used space of the planet and update it, using the function
13. Construction Overview (buildings.php)
Starting from this article, the focus of Xnova's research on the process is actually a large number of functions, and the construction of the page will no longer be carefully explained.
buildings.php files
Xi. Public Function (functions.php)
Originally intended to write the analysis of the building page, but the building page things more, a day is not finished, and we have a lot of functions to be used frequently, the first simple introduction of
Scroll to load more data, suitable for comments and other pages
The database of this example is very simple and it is clear at a glance
Copy CodeThe code is as follows:
$query =mysql_query ("SELECT * from content ORDER BY id desc limit 0,10")
In the PHP program writing, develop the programming habit of writing log file, is a good programming habit, programmers should learn this kind of programming idea, not too impetuous. Early programming is not rigorous, often bring later maintenance
With the progress of science and technology, the application of two-dimensional code more and more widely, this site has been an article introduced by using jquery plug-in to generate two-dimensional code, today I give you to share how to use PHP to
Thinkphp's session cross-domain issues many developers have encountered!
In fact, whether it is thinkphp or PHP itself, in solving the cross-domain problem of the session need to set Session.cookie_domain.
In thinkphp, the configuration file needs
Implement the function, the action item can be deleted separately, the batch item can be deleted in bulk, batch display, hide (change the status_is value of the advertisement database);
1. View key points:
Copy the Code code as follows:id?>">
Id?>
ThinkPHP3.1.3 in the case of enabling routing, its paging address is not the address of the route, because the thinkphp3.2.1 code is not fixed, many people have encountered this problem, this article adopts olcms modification method to solve this
When a recent poll of a website was made, the cookie and session conflict in thinkphp caused the cookie not to be used.
The site is based on the thinkphp framework, there is a page showing a lot of pictures, require each picture below there is a
Use: Incoming a URL, such as http://jb51.net/article/1.html, return 1, the Representative has been included; return 0, on behalf of Baidu is not included.
Copy the Code code as follows:
Header ("content-type:text/html; Charset=utf-8 ");
function
Save the following code as uploads.php
Copy CodeThe code is as follows:
Easy File Upload
function File_list ($dir, $pattern = "") {
$arr =array ();
$dir _handle=opendir ($dir);
if ($dir _handle) {
while (
Thinkphp provides a very powerful view query application function, the user can use the View query function to specify and filter the field contents of multiple data tables as needed, organized into a view model based on these data tables, and then
Today we share a function to get a timestamp after 10 days, the key of the program is that he can not count week 6th Oh. If you have other needs. can be changed to n days of OH. Anyway, it's not weeks 6th. Ha ha.
Method One: =-1 and $num =10)
Look first.
The path to the font and font files needs to be set in $fontfilepath and $fontfilename in the class. Such as:Copy the Code code as follows:private static $FontFilePath = "static/font/"; Location relative to this code fileprivate
The data to manipulate
Copy CodeThe code is as follows:
David Flanagan
Luke Welling
Laura Thomson
David Courley
Brian Totty
Several basic concepts of XML1, Node: node
17. Resource Update (planetresourceupdate.php page)
In front of the basic functions of the important function is finished, this chapter we analyze an important function planetresourceupdate, the main function is to update resources, manufacturing
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