PHP related questions study (for interview)

Source: Internet
Author: User
Tags apc php basics php development environment php framework

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
  1. 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)
  2. 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)
  3. 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.
  4. Heredoc Introduction. (The answer references this article: PHP base data type 4--string (string))
  5. Write some PHP magic methods. (Answer reference This article: PHP Basics and Objects 15--Magic method)
  6. 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)
  7. Two methods of passing parameters to PHP. (Answer reference This article: PHP basic function 2--function parameters)
  8. (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)
  9. Error_reporting and other debugging functions are used. (The answer references this article: error handling and logging of PHP extensions)
  10. 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)
  11. The POSIX and Perl standard regular expressions differ.
  12. 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)
  13. Write code to solve the problem of multiple processes/threads reading and writing a file at the same time.
  14. 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)
  15. 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
    1. 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)
    2. 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.
    3. MySQL database for the storage of the publishing system, more than 50,000 increments per day, estimated operations three years, how to optimize?
    4. writes out a sort algorithm (principle) and says how to optimize it.
    5. Please briefly describe your most proud development.
    6. for large traffic sites, what approach do you take to solve the statistics of page visits?
    7. have you ever used a template engine? If you have the name of the template engine you are using?
    8. Please describe the principle of the session, the large web site of the session should pay attention to what?
    9. Tools for testing PHP performance and MySQL database performance, and ways to find bottlenecks. The
    10. Regular presents all the links in a Web page.
    11. describes the principle of a common SSO (single Sign-on) scenario, such as DEDECMS integrated Discuz Passport.
    12. The characteristics of the PHP framework you have written, the main solution to what the problem, and the different points of other frameworks.
    13. Large Forum/news article system/sns What is the difference in performance optimization?
    14. 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.
    15. 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
    1. 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)
    2. Basic shortcut keys for VIM. (The answer refers to these two articles: Ubuntu Command Daquan series two--vim editor and concise Vim Training)
    3. SSH security enhancement method, password mode and RSA key mode configuration.
    4. Rpm/apt/yum/ports Pack, query, delete the basic commands. (Answer reference this article: Ubuntu Command Daquan series five--software installation)
    5. 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)
    6. Basic use of gdb,strace,valgrind.
4. Front end, Html,js
    1. CSS box model.
    2. The prototype in JavaScript.
    3. The scope of this object in JavaScript.
    4. The difference between IE and Firefox event bubbling.
    5. What is weird mode, Standard mode, near Standard mode.
    6. The definition of a DTD.
    7. Ie/firefox commonly used hack.
    8. The front-end js/css debugging tool under Firefox,ie.

PHP related questions study (for interview)

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.