php intermediate face questions V1.0

Source: https://blog.csdn.net/myhuashengmi/article/details/51866536

 

1 , SESSION save where the server?

 

A: By php.ini specified, there can be specified directory or file memory, or database!

 

(Stored on a server php specified directory ( the session.save_path position) is stored)

 

 

 

2 , the server is how to get the client's cookie?

 

A: The server processes the request of each candidate can crawl into the header information of cookie and set the return ,

 

 

 

3 , how to achieve SESSION what shared principles, shared that?

 

A: The master-slave configuration database, the SESSION stored in the master database, it is common practice to also installed in each server MEMCAHCE, the SESSION stored in each MEMCACHE in

 

 

 

4 , please say roughly LVS process set up, and what file-sharing principle?

 

5 , the network share server upload data is uploaded to a server? Or more than one? How to synchronize ?

 

 

 

6 , say what you know database design paradigm? What common modeling tools? ( MySQL modeling tool)

 

A: 1NF: each atom of the meet, not division; 2NF: Every record to satisfy uniqueness, 3NF: field is not redundant, sometimes we also need anti three paradigms, common modeling tools: phpMyAdmin, Navicat for MySQL , DOS command line;

 

 

 

7 , if you are a project manager, how do you manage the daily issues your project team?

 

 

 

8 , master-slave configuration database, which are the basic conditions required, need to configure what?

 

A: The basic requirements: two or more database servers,

 

    Configuration process: 1. Open the master server from each bin-log; from server + relaylog

 

            2. The establishment of the desired account in the master server and authorization requirements;

 

            3. After synchronization master connected to the created account and analyzed using a binary file read from the server hexyl

 

     CI: Main: log-bin bin-= MySQL; Server-ID NUM = (int); the format-the binlog = mixd / Statement / Row /

 

             从:log_bin=mysql-bin;server-id=num(int)//唯一;relay_log=mysql-relay-bin;log_slave_updates=1;relay_only=1;

 

 

 

9 , say your favorite version control, SVN in several configuration files which need to be configured

 

A: SVN, GIT, CVS; configuration file: mod_authz_svn.so mod_dav_svn.so moved to the server module and load, configure permissions, assign users;

 

 

 

10 , LVS before you run the project needs to pay attention to what matters, or what problems will arise ?

 

 

 

11 , ecshop why violated redundant design mode field appear, say why do it?

 

A: Under certain circumstances, anti three paradigms but increased efficiency, so doing this!

 

 

 

12 , commonly mysql optimizations, as many say ?

 

A: SQL statement optimization; storage optimization; database configuration; server configuration

 

 

 

13 , memcache What is the principle? Whether stored 2M of value?

 

A: The C / S mode, collusion is plain text, based libevent mechanism for handling data in memory; memcache maximum deposit only 1MB data, memcache not born to store large data, but may consider the value before storage compresses or split into multiple values are assigned to the plurality of key in!

 

 

 

14 , What is a queue? Exclusive lock, Myisam how to resolve the deadlock?

 

A: By default MYisam table level lock, so that a plurality of simultaneously operating operation only a single table in a manner queue;

 

    Exclusive lock, also known as a write lock, the SQL implementation process to the exclusion of other requests write lock automatically released after the implementation;

 

    Deadlock resolved: first find the deadlock thread number, and then kill the thread ID

 

    

 

    

 

15 , please tell mysql commonly used storage engine? memory storage engine's features?

 

A: Myisam , InnoDB , Memory, Memory feature is to keep the table in memory, fast several times, loss of data after reboot!

 

16 , how best to quickly insert 5000 or more pieces of data ?

 

 

 

 

 

17 , the number of open-source framework you used?

 

Answer: TP / CI / ZF / YII

 

18 , ecshop shopping cart information stored?

 

答:order_info;order_goods;order_action;

 

 

 

19 , PHP generated page cache principle

 

A: The contents of the cache into the OB cache, in OB after the end of the cache or the script is finished into the program and return the cache is not the end!

 

 

 

20 , you know what caching technology, respectively, to do the simple introduction

 

A: ob cache, write cache file class template technology; memcache; Redis ; Redis and memcache most significant difference is that the data and not only, but also generates a file on disk in memory, even if the restart, the data can also be loaded ;

 

 

 

21 , HTTP principle agreement, what is full duplex, half duplex what is ?

 

A: the HTTP protocol is a stateless collusion, talk is straightforward requests and responses, full-duplex refers to simultaneous requests and responses, half-duplex refers to a single execution;

 

 

 

22 , how to reduce the IO overhead, ucenter communication principle?

 

23 , DZ is how to achieve a large amount of data insertion, DZ What are the technical characteristics?

 

24 , how many have you used JS framework? Illustrate the advantages and disadvantages

 

Answer: JQuery , Prototype , Dojo , Ext , YUI;

 

     jQuery: Powerful DOM node query to none left, easy animation operations; DOM packaged good! Compatible version is very good level

 

     prototype: earlier jS library for ajax support better, prototype-based object-oriented chain is very strong

 

     dojo: easier Minamata WEB pages with dynamic capabilities;

 

     ext: Powerful UI operation topped the list;

 

     YUI: powerful library provides a number of ways;

 

 

 

25 , how to measure AJAX use (when to use AJAX )

 

A: AJAX both said no refresh technology, common usage scenarios see: form validation, user rating, click; as long as the need to use real-time interaction with the server;

 

26, what is push technology, the principle is to achieve what ?  

Reference Links: https://www.cnblogs.com/jackluo/p/3728933.html

 

A: The push technology, also known as the COMET , that is, when the client requests pending long connection at the server, once the server has new data, it immediately fall back to the anti-client, real good;

 

 

 

27 , What is vertical search, Sphinx carve the word principle?

 

A: vertical search means in the context of the search within a specific range, only more sophisticated search surface, rather than more widespread; Sphinx principles of the word: divide the text into each of a plurality of words from the document data source like to create an index and index table stored in memory!

 

 

 

28 , sphinx can not ha_sphinx.so is used to do ?

 

A: A sphinx memory module;

 

 

 

29 , PHP usual array merge way ?

 

答:array_mergn;array_mergn_recursive;

 

 

 

30 , answered PHP to read files faster, or read mysql data faster? Why?

 

A: Under normal circumstances read the file "read database; different circumstances will reverse speeds, such as: a small amount of data at the database, and file and directory with a lot of cases, read the database file is larger than read

Guess you like

Origin www.cnblogs.com/sz-xioabai/p/11343647.html