1. Ajax Cross-Domain
JSON: Data Interchange Format, {"Name": "Wangtianle"}
JSONP: Unofficial cross-domain data exchange protocol, can be dynamically added <script/> tags to invoke the server-provided JS script
JSONP Example:
(1) front page test.html
<!doctype html>
(2) test.html referenced script ajax.js
$.ajax ({ "post", "ajax.php", "Jsonp", "callback",// the parameter name passed to the request handler or page to obtain the name of the JSONP callback function (default: Callback) jsonpcallback: "Success_jsonpcallback",/ / Custom JSONP callback function name, the default is jquery automatically generated random function name function (JSON) { alert (' Success, JSON return value= ' + json }, error:function() { alert (' (fail '); }});
(3) Back-end ajax.php:
<? $data = "..."; $callback $_get [' Callback ']; Var_dump ($callback); Echo $callback. ' ('. Json_encode ($data). ') ' ; Exit ?>
2, PHP template engine: Separate PHP and HTML, there are smarty components
3, Forum Unlimited classification of the implementation principle:
Design a parent field in a table in db to
4, GD library: PHP Processing Image Expansion Library
5, Mb_strlen ($STR); Calculate the length of a string
Mb_substr ($str, $i, ten, $encoding); Gets $str, starting with $i, a partial string of length 10
6.
PHP Basic Knowledge Summary (V) PHP face questions