A set of PHP pen questions

Source: Internet
Author: User
In PHP, the name of the current script (excluding the path and query string) is recorded in the predefined variable

1. in PHP, the name of the current script (excluding the path and query string) is recorded in the predefined variable
(1), and the URL to the current page is recorded in the predefined variable (2.
2. Execution section Output (3 ).
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 using the Apache module in the http. in the conf file, first use statement (10) to dynamically load the PHP module, and then use statement (11) to make Apache process all files with the extension of php as PHP scripts.
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 ).
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)

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.