Statement: This series of blog reference "Big Talk design mode", author Geoscience.
It is generally considered that code that complies with the following six principles is easily extensible and reusable:
The six principles of any
JS code is as follows
function submitapply () {var form = global.getelement ("#submitForm"); var UserName = global.getelement (form, ' input[name= ' name '] '). Value; var Mobile = global.getelement (form, ' input[name= ' Tel '] '). Value;
A b Two servers, the uploaded files on the B server, uploadify.php This file is also placed on the B server, a just provide user background upload interface, b Server is also configured under the Crossdomain.xml file, the original can be uploaded,
Recently encountered a problem: my local Operation project environment is Wamp, and then uploaded to the service space is Linux+nginx. When running locally and running in the WAMP environment, the following feature is absolutely no problem,
But
I try to use PHP to do a DHT crawler, because the transmission of data using Bencode, this is not a problem, can be correctly encoded decoding, but if you send find_node data, the data obtained there is a nodes, This is a binary stream encoded data
Recently encountered a problem in the work:
There is one array object (that is, the element of an array is an object that contains multiple fields), and the original data for the array object is as follows:
The sorting rules are as follows:
1
1. Installation configuration for Curl:
Installation under Linux:
http://php.net/manual/zh/curl.setup.php
Installation under Windows:
Open:
Extension=php_curl.dll//Note the corresponding version of the DLL file
2. Curl Use steps
For
PHP7 will be officially released in October 2015, let's take a look at the PHP7 features given by the official website
Official website: http://www.php7.ca/https://wiki.php.net/phpng
PHP7 new features (what would be in PHP 7/phpng)
Performance
After inserting data into the database in the PHP page, garbled characters are displayed in the database.
Database Character Set:
Page Character Set:
Execute mysql_query ("Set names ' UTF8 '") before inserting to resolve the problem
Online
Recently encountered a strange thing, the first two days to write a good code, today again run is garbled. Checked, not the general meaning of garbled, but the return of Unicode encoded characters.
such as Kanji: Login failed, after Json_encode
Previous chapter: PHP +ajax +sql for data interaction
In the previous chapter, the PHP +ajax +sql implementation of the asynchronous loading of data, and now we understand the next page of paging, here we use AJAX to achieve the paging effect
Often there are students or netizens so ask me, poor I was asked the dizzy. Let's start with a couple of things to summarize.
Good situation:
1, do not exclude some people have talent, IQ high brain benevolence large. Quick to get started, this
The header (' location:http://www.baidu.com '); * * But running the above discovery successful jump name is because this HTTP header does not conform to the HTTP specification, it is likely that the entire HTTP response will not be resolved.
The problem is that when you use Zendstudio to create a new ZF2 project, we can select which libraries to include in the process, including the default included Zend Framework and some JS libraries, after selecting the JS and ZF Library new item,
PHP core technology and best practice regular expression Reverse reference
A reverse reference is used to repeat the search for text that precedes a grouping match. For example, "\1" represents the text for grouping 1 matches:
\b (\w+) \b\s+\1\b
I installed Wamp on the server side, the port is set to 6666 configuration good site, the computer through the local area network can be accessed, the address is 10.10.10.**:6666, Web page display no problem. However, the phone is connected to the
The original is posted on my blog
Http://starlight36.com/post/php-type-convert
Recently in the interview for the company new, often asked a topic is the PHP type conversion value, for example:
Var_dump ((int) true), Var_dump (String) True,
After successfully installed Avvperv, input http://127.0.0.1/phpmyadmin and then prompt the output password, password and user name correctly entered, the webpage has been in the loading state, can not enter the page, there is no error, I do not
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