1. Original address: "HTTP://WWW.YIICHINA.COM/TUTORIAL/57"
Note: This article is transferred from http://www.icultivator.com/p/5535.html
Compiled a PHP senior engineer's pen questions, the problem is very comprehensive. Basically these questions are answered well, then you should be able to do most of the internet company's PHP position. Here's the straight question:
1. Basic Knowledge points
- The meaning of several status codes in the HTTP protocol: 503,500,401,200,301,302 ... (The answer refers to this article: in-depth understanding of the HTTP protocol (ii)--Protocol detailed article)
- The difference between include,require,include_once,require_once. (The answer reference this article: PHP basic Flow control 9--require/include/require_once/include_once)
- The evolutionary history of several versions of Php/mysql, such as the significant improvements in mysql4.0 to 4.1,php 4.x to 5.1, etc.
- Heredoc Introduction. (The answer references this article: PHP base data type 4--string (string))
- Write some PHP magic methods. (Answer reference This article: PHP Basics and Objects 15--Magic method)
- Some of the Configure parameters when compiling PHP. (The answer refers to this article: use source compilation in Ubuntu to install the apache+mysql+php development environment)
- Two methods of passing parameters to PHP. (Answer reference This article: PHP basic function 2--function parameters)
- (MySQL) Please write the meaning of the data type (int char varchar datetime text); What is the difference between varchar and char; (Answer reference this article: MySQL data type detail)
- Error_reporting and other debugging functions are used. (The answer references this article: error handling and logging of PHP extensions)
- Have you ever used version control software? If you have the name of the version control software you are using? (answer reference to these two articles: Linux in SVN installation, configuration and use, and version control tools git Getting Started Guide)
- The POSIX and Perl standard regular expressions differ.
- Where Safe_mode is restricted after opening. (Refer to this article: PHP features Safe Mode 2--functions that are restricted or masked by Safe mode)
- Write code to solve the problem of multiple processes/threads reading and writing a file at the same time.
- Write the code that uploads the file. (Refer to this article: PHP features file upload to use the Post method on the flyer file and multiple files)
- The difference between Mysql's storage engine, MyISAM and InnoDB. (Refer to this article: Another discussion of MySQL storage engine selection: InnoDB or MyISAM)
2. Web architecture, security, project experience
- describes the experience with Xdebug,apc,eaccelerator,xcache,zend opt. (The answer refers to these two articles: PHP debugging tool Xdebug installation and use of--xdebug simple introduction and optional PHP cache APC Analysis-installation, configuration and working principle)
- use mod_rewrite, there is no/archivers/on the server 567.html This physical file, redirect to index.php?id=567, please open mod_rewrite first.
- MySQL database for the storage of the publishing system, more than 50,000 increments per day, estimated operations three years, how to optimize?
- writes out a sort algorithm (principle) and says how to optimize it.
- Please briefly describe your most proud development.
- for large traffic sites, what approach do you take to solve the statistics of page visits?
- have you ever used a template engine? If you have the name of the template engine you are using?
- Please describe the principle of the session, the large web site of the session should pay attention to what?
- Tools for testing PHP performance and MySQL database performance, and ways to find bottlenecks. The
- Regular presents all the links in a Web page.
- describes the principle of a common SSO (single Sign-on) scenario, such as DEDECMS integrated Discuz Passport.
- The characteristics of the PHP framework you have written, the main solution to what the problem, and the different points of other frameworks.
- Large Forum/news article system/sns What is the difference in performance optimization?
- Album Class application: Require in the browser can also select and upload multiple files, picture requirements can be clipped, compressed package on the server side decompression. Can upload a single file up to 50M. A progress bar is displayed during the upload process. Each image can generate four sizes of thumbnails, video files to be converted to FLV for flash playback. Describe the various types of open source software and simple uses to be covered.
- A group of monkeys lined up in a circle, numbered by 1,2,...,n. Then, starting from the 1th, Count to M., Kick It Out of the loop, start counting from behind it, Count to M., and Kick It out ... and so on, until the last monkey is left, the monkey is called the King. Requires programming to simulate this process, enter M, N, and output the number of the last king. Simulate the process with a program.
3. Unix/linux Basic Use
- Some ways to view current system load information under Linux. (The answer refers to these two articles: Ubuntu command Daquan series one--linux instruction and Ubuntu View System Information Command Daquan)
- Basic shortcut keys for VIM. (The answer refers to these two articles: Ubuntu Command Daquan series two--vim editor and concise Vim Training)
- SSH security enhancement method, password mode and RSA key mode configuration.
- Rpm/apt/yum/ports Pack, query, delete the basic commands. (Answer reference this article: Ubuntu Command Daquan series five--software installation)
- Makefile's basic format, GCC compilation, connection commands,-o0 and-o3 differences. (The answer refers to this article: configure, make, and make install in Linux compilation installation respectively)
- Basic use of gdb,strace,valgrind.
4. Front end, Html,js
- CSS box model.
- The prototype in JavaScript.
- The scope of this object in JavaScript.
- The difference between IE and Firefox event bubbling.
- What is weird mode, Standard mode, near Standard mode.
- The definition of a DTD.
- Ie/firefox commonly used hack.
- The front-end js/css debugging tool under Firefox,ie.
PHP related questions study (for interview)