The basic idea is: in the JS dynamic creation of the Select control's option, through Ajax to obtain in PHP from the SQL database from the provincial and municipal information, the code is a bit long, but many are similar, such as JS in the province,
These days have been using simple_html_dom to catch some articles. The coding of different websites is basically GBK gb2312 utf-8 in China. and to gb2312 and Utf-8 majority.
My version of the simple_html_dom has a way convert_text is this way.
Copy
The basic idea is: in the JS dynamic creation of the Select control's option, through Ajax to obtain in PHP from the SQL database from the provincial and municipal information, the code is a bit long, but many are similar, such as JS in the province,
The project was written on a temporary basis. To be perfected:
Copy CodeThe code is as follows:/*
* Based on user-submitted (swf/html) address, get Youku, potato SWF play address
* */
Private Function _getswf ($url = ") {
if (Isset ($url) &&!empty (
CodeIgniter Project Access if the following error message appears:
Error with CACHE directory.
Check the permissions of the cache directory and you will find
Drwxr-xr-x 3 root root 4096 Mar 1 13:53 Cache
As long as you change it to read-write ,
Let's introduce the mkdir () function:
mkdir ($path, 0777,true);
First parameter: must, represents the path of the multilevel directory to be created;The second parameter: Set the permissions of the directory, the default is 0777, which means the
Original link: http://blogs.msdn.com/b/scottdensmore/archive/2004/05/25/140827.aspx
Although this article is not written by me, I totally agree with the point in the article. Brian button is probably one of the most experienced people I know. I'm
The original station a lot of articles are excerpts of the external article, the article many links are either time has expired, or is some of the test URL, such as: http://localhost/, such as, link more words, the formation of a lot of dead links,
The Simple Linux PHP gets the server state code, not much to say-directly on the function:
function Get_used_status () {$fp = Popen (' top-b-N 2 | grep-e "^ (cpu| mem| Tasks) "'," "R");//Get a moment of system CPU and memory usage$rs = "";while
Learning Essentials:
1.OOP Package
Inheritance of 2.OOP
Polymorphism of 3.OOP
The three main features of object-oriented are encapsulation, inheritance, and polymorphism.
A The encapsulation of OOP
Hides the fields and implementation details of
Copy the following code directly, create a new file called thumbnailimage.php, the file name should not be capitalized, the following code to copy in:
Copy the Code code as follows:
Define (' Max_img_size ', 100000);
Supported Image typesDefine
To join an array in PHP, we have a ready-to-use function, which is the Array_splice () function, which removes all elements from offset to end of offset+length in the array and returns the deleted element as an array. The Array_splice () syntax
PHP to open the OpenSSL method, in most cases, OpenSSL is not open, to enable the need to make the following simple settings
windows open method:
1: first check the php.ini; Extension=php_openssl.dll exists, if present, remove the previous
Originally wanted to upload pictures with the plugin, and then wrote a simple JS to achieve asynchronous image upload, not much to say on the code is very simple
upload.php
if (Isset ($_files["myfile")){$ret = Array ();$uploadDir = ' images '.
Well, actually I don't value the traffic, but today's visit is more than I sent last year.
I'm still a little bit surprised. As a technique of the cock silk. No, I don't think I'm a dick, I think programming is a big mountain career. Although very
1. Abstract class
A common base class is always defined in the abstract class mechanism, and the specific details are left to the inheritors for implementation. Abstract concepts allow you to create well-scaled schemas in your development projects.
Rumpetroll is a HTML5-based multi-person chat program, the user's ID in the interface is a swimming tadpole, the location of the chat content is also changing at any time.
Demo: http://rumpetroll.com
Source: Http://github.com/danielmahal/Rumpetroll
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