PHP Programmer face Questions and Answers (basic theory)

Source: Internet
Author: User
This article introduces, a copy of the face test for PHP programmers, with detailed answers, belongs to the basic theory-based content, the need for friends, refer to it.

1. What does PHP mean? A: PHP is a script language based on the server to create a * * station, you can use PHP and HTML to build the site home page

2, talk about the advantages and disadvantages of asp,php,jsp? A: ASP full name Active Server Pages, which is a Web server-side development environment that can generate and run dynamic, interactive, high-performance Web service applications.   ASP uses the script language VB Script (Java script) as its own development language. PHP is a cross-platform, server-side, embedded scripting language. It borrows heavily from the syntax of the C,java and Perl languages and is coupled with PHP's own features, enabling Web developers to quickly write dynamically generated pages. It supports most of the current databases. Also, PHP is completely free, and you can download it freely from the official PHP site (http://www.php.net) without spending money.   And you can gain unrestricted access to the source code, and even add the features you need. JSP is Sun's new generation of site development language, he completely solved the current asp,php a common problem-script-level execution (it is said that PHP4 has been supported by Zend, the implementation of the compilation run). With its own expertise in Java, Sun has a new fruit in Java from Java applications and Java applets, which is Jsp--java Server Page.   JSP can complete powerful site program with the support of Serverlet and JavaBean. All three provide the ability to mix some kind of program code in HTML code, and the language engine to interpret the code of the Execution program. However, the JSP code is compiled into a Servlet and interpreted by the Java virtual machine, which occurs only on the first request to the JSP page. In ASP, PHP, JSP Environment, the HTML code is mainly responsible for describing the information display style, and the program code is used to describe the processing logic. Ordinary HTML pages rely only on WEB servers, while ASP, PHP, JSP pages require additional language engine parsing and executing program code. The execution results of the program code are re-embedded in the HTML code and then sent together to the browser. ASP, PHP, JSP are WEB server-oriented technology, the client browser does not require any additional software support.

3. What do you know about MVC? A: The application of the model, view, controller (controllers) completed by the model emitted to implement the function to the controller, the controller receives the organizational functions passed to the view;

4, write the number of the top 10 names of SQL, using the following table: Members (Id,username,posts,pass,email) Answer:

SELECT * from "members" ORDER by posts DESC limit 0, 10;

5, what is the GD library for?

A: The GD library provides a range of functions for working with images, using the GD library to process pictures, or to create images. The GD library on the site is often used to generate thumbnails or to add watermarks to images or generate reports on site data.

6. Please write the meaning of the data type (int char varchar datetime text); What do varchar and char have? A: int is a numeric type, char fixed length string, varchar actual length string, datetime date type, text text string char field fixed to create table set length, varchar is variable length character.

The above is the entire content of the PHP interview question provided in this article, ask and answer, content is basic theory, hope to help you.

  • 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.