DedeCMS core class TypeLink. class. php abstract notes. learning php is to learn from and analyze it so that you can learn more. Note: '// +' indicates additional comments added to me.
Class TypeLink
{
Var $ typeDir;
Var $ dsql;
Var $ TypeID; // +
After reading Smarty, I feel that it is very useful, but I don't know how to generate html documents. I checked it online today and found a method. then I directly sent the code below.
The code is as follows:
/*File: config_smarty.phpDone:
Because the id in the database may be large. If % d is used, the correct result may not be returned because it is out of the range. Therefore, it is recommended that %. 0f be better than % d when formatting the id. Compare to construct SQL
Php source code encryption is modeled after the micro-shield PHP encryption expert (PHPCodeLock). For more information, see.
The code is as follows:
Function T_rndstr ($ length = "") {// returns a random string.$ Str =
Common php Class Summary, make full use of it to improve development efficiency and enhance the implementation of php functions.
Chart Library
The following class library allows you to easily create complex charts and images. Of course, they need
For details about the date () date and time functions in php, refer. 1, year-month-day
Echo date ('Y-m-J ');
2007-02-6
Echo date ('Y-n-J ');
07-2-6
Uppercase Y indicates four digits of the year, while lowercase y indicates two digits of the
During the development process, we often take into account the execution efficiency of some php code, so that our program will run more smoothly. here is a simple summary, for more information, see. 1. when file_get_contents can be used to replace
There is a problem in the addition operation of PHParray. you can continue to look at it. The + operator appends elements of remaining keys from the right handed array to the left handed, whereas duplicated keys are NOT overwritten.
I only know
These two days, I took some time to continue to improve the core part of the "X Plan". The core is to load necessary files and try two methods to find that the efficiency is different, share it ~ Let's talk about two methods:
1) define a string
When I went to Q this evening, a previous student asked me online how to delete all subcategories under an unlimited category. I sorted out the code a little and sent it out, and put it in the php student Q & A for future users to view it.
The code
To filter all html tags in a string, you can write a function by yourself and use regular expression filtering. The other method is to use the strip_tags function provided by php. This article describes how to clear html tags from strings in php.
To
Nothing left to worry about. I saw an article on php form conversion textarea line break on the internet. after reading the article, I feel that some information in this article is not accurate based on my past experience... as a result, I
The number of websites that have seen a Baidu thief reaches pr6. More than 100,000 !! After 40 days of provisioning, I found that Baidu is really friendly to this. I recently found that more and more versions are available to know and ask thieves !!
PayPal is a fast, secure, and convenient online payment method for transnational transactions. Currently, the PayPal payment interface can be associated with most domestic credit cards to enable Chinese countries to make payments for transnational
The most complex sorting method for multi-dimensional array sorting in PHP language. In actual encoding, we will use the PHP function array_multisort () to implement this complex sorting.
I. first look at the simplest situation. There are two arrays:
Suppose we are running a mobile phone-related website. you can specify several parameters (such as operating system, screen resolution, camera pixel, and so on) to filter your desired mobile phone. However, because mobile phones have many parameters
Problem: The mime type of any file uploaded by swfupload is applicationoctet-stream. The solution is as follows, similar to other frameworks.
Source code (/system/libraries/upload. php 199 line)
$ This-> file_type = preg_replace ("/^ (. + ?);.
In common for and foreach loops in php, conditions are often judged or aborted. The processing method mainly uses the break and continue process control commands. The main differences are as follows:
Break is used to jump out of the current
Php programmers are familiar with the term process. Php engineers generally do not have a deep understanding of object-oriented, so they need to call external variables in methods in a large process, therefore, there will be many opportunities for
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