PHP test_php tutorial

Source: Internet
Author: User
PHP testing questions. Php (as the mainstream development language) test question 1. in php (as the current mainstream development language), the name of the current script (excluding the path and query string) is recorded in the pre-defined variable php (as the current mainstream development language) test question

1. in php (as the mainstream development language), the name of the current script (excluding the path and query string) is recorded in the predefined variable (1; the URLs linked to the current page are recorded in the predefined variable (2.
2. Execution section Output (3 ).
3. in HTTP 1.0, status code 401 indicates (4). if the "File Not Found" prompt is returned, the header function is available. The statement is (5 ).
4. The role of the array function arsort is (6); the role of the statement error_reporting (2047) is (7 ).
5. the format of the database connection string in PEAR is (8 ).
6. write a regular expression and overwrite all JS/VBS scripts on the webpage (that is, remove the script tag and its content): (9 ).
7. install php in the form of apache (the most popular WEB server platform on Unix) module (as the mainstream development language), in the file http. in conf, we first need to use the statement (10) to dynamically load the php (as the mainstream development language) module, and then use the statement (11) to make apache (the most popular WEB server platform on Unix) all files with the extension of php (as the current mainstream development language) are processed as php (as the current mainstream development language) scripts.
8. the statement include and require can both include another file to the current file. The difference is (12). to avoid multiple inclusion of the same file, you can use the statement (13) to replace them.
9. attributes of the class can be serialized and saved to the session, so that the entire class can be restored later. the Function used is (14 ).
10. a function parameter cannot be a reference to a variable, unless you set (15) to on in php (as the mainstream development language). ini.
11. the meaning of left join in SQL is (16 ). If tbl_user records the student's name and student ID, tbl_score records the student's student ID (ID) (which is not recorded after some students take the test) to print the name of each student and the total score of each subject, use the SQL statement (17 ).
12. in php (as the mainstream development language), heredoc is a special string and its end mark must be (18 ).

12. write a function to traverse all files and subfolders in a folder.
13. briefly describe the implementation principles of unlimited classification in the forum.
14. design a webpage so that a full screen window is displayed when it is opened, which contains a text box and a button. After entering information in the text box, you can click the button to close the window, but the entered information is displayed on the main page.

Http://www.bkjia.com/PHPjc/509146.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/509146.htmlTechArticlephp (as the current mainstream development language) test question 1. in php (as the mainstream development language), the name of the current script (excluding the path and query string) is recorded in the predefined variable...

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.