PHP Junior Interview Questions are for programmers with little experience who are just looking for a job. This provides a lot of help for us to go out for interview, InterviewOfficial meetings often test us, and the interview questions played a big role at this time.
11. Have you ever used version control software? If so, what is the name of the version control software you used?
TortoiseSVN-1.2. 6 svn-1.2.3
12. Have you ever used a template engine? If so, what is the name of the template engine you used?
smarty
13. Please briefly describe your most proud development work
...
14. For websites with large traffic, what methods do you use to solve the traffic problem?
First, confirm whether the server hardware is sufficient to support the current traffic
Secondly, optimize database access.
Third, external hotlinking is prohibited.
Fourth, control the download of large files.
Fifth, use different hosts to divert the main traffic
Sixth, use traffic analysis and statistics software.
15. Use PHP to write the code to display the client IP and server IP
function get_client_ip() {# if(getenv('HTTP_CLIENT_IP')) { $client_ip = getenv('HTTP_CLIENT_IP'); } elseif(getenv('HTTP_X_FORWARDED_FOR')) { $client_ip = getenv('HTTP_X_FORWARDED_FOR'); } elseif(getenv('REMOTE_ADDR')) { $client_ip = getenv('REMOTE_ADDR'); } else { $client_ip = $HTTP_SERVER_VAR['REMOTE_ADDR']; } return $client_ip; }
16. What is the difference between the statements include and require? To avoid including the same file multiple times, you can use (?) statements to replace them?
include_once require_once
##17. How to modify the survival time of SESSION$savePath = "./session_save_dir/";
$lifeTime = 24 * 3600;
session_save_path($savePath);
session_set_cookie_params($lifeTime);
session_start();
18. There is a web page address, such as the homepage of the PHP Development Resource Network: http ://www.phpres.com/index.html, how to get its content?file_get_contents($url)
19. In HTTP 1.0, the meaning of status code 401 Yes (?); if the prompt "File not found" is returned, the header function can be used, and its statement is (?)##Unauthorized(Unauthorized)
Header("http/1.0 403 Forbidden");
##php Brief description of junior interview questions (1)
Compilation of PHP junior interview questions
5 common questions among junior PHP developers
The above is the detailed content of Brief description of PHP entry-level interview questions (2). For more information, please follow other related articles on the PHP Chinese website!