PHP Test Questions _php Tutorial

Source: Internet
Author: User
PHP (as the current mainstream development language) test questions

1. In PHP (now the mainstream development language), the name of the current script (not including the path and query string) is recorded in the predefined variable (1), while the URL linked to the current page is recorded in the predefined variable (2).
2. Execution of program segments The output (3).
3. In HTTP 1.0, the meaning of status code 401 is (4); If you return a prompt for "file not found", the header function is available with the statement (5).
4. The function of array function Arsort is (6); the function of statement error_reporting (2047) is (7).
The database connection string format in 5.PEAR is (8).
6. Write a regular expression that js/vbs all the scripts on the Web page (that is, remove the script tag and its contents): (9).
7. Install PHP as an Apache (the most popular Web server platform on UNIX platform) module (as the current mainstream development language), in the file http.conf first use the statement (10) to dynamically load PHP (as the current mainstream development language) module, Then use the statement (11) to make Apache (Unix platform's most popular Web server platform) all the files with the extension PHP (as the mainstream development language now) as PHP (as the mainstream development language) script.
8. Statements include and require can include another file in the current file, the difference is (12), in order to avoid multiple inclusion of the same file, you can use the statement (13) instead of them.
9. The properties of the class can be serialized and saved to the session so that the entire class can be restored later, and the function to be used is (14).
10. A function parameter cannot be a reference to a variable, except in PHP (which is now the mainstream development language). INI (15) is set to ON.
The meaning of the left join in 11.SQL is (16). If Tbl_user records the student's name (name) and school number (ID), Tbl_score records the student (ID) and test score (score) and the test subject (subject), which were expelled from the student's exams, without their records. To print out each student's name and the corresponding total, the SQL statement (17) can be used.
12. In PHP (as the current mainstream development language), Heredoc is a special string whose end flag must be (18).

12. Write a function that can traverse all the files and subfolders under a folder.
13. Briefly describe the implementation principle of infinite classification in the forum.
14. Design a Web page so that it pops up a full-screen window with a text box and a button. The user clicks the button to close the window while entering the information in the text box, and the input information is displayed on the main page.

http://www.bkjia.com/PHPjc/509146.html www.bkjia.com true http://www.bkjia.com/PHPjc/509146.html techarticle PHP (as the current mainstream development language) test question 1. In PHP (now the mainstream development language), the name of the current script (not including the path and query string) is recorded in the predefined variables ...

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