PHP Face question Summary _php tutorial

Source: Internet
Author: User
Tags version control system
1, the time format of the previous day with PHP printed is 2006-5-10 22:21:21 (2 minutes) 2, Echo (), print (), Print_r () the Difference (3) 3, the ability to make HTML and PHP separated from the use of the template (1 points) 4, which tools to use the version control System? (1 points) 5, how to implement string rollover? (3 points)---------------------------------------------------------------6, the method of optimizing MySQL database. (4 points, more than write more) 7, the Meaning of PHP (give 1 points) 8, the function of MySQL to get the current time is?, the function of formatting date is (2) 9, the implementation of the text string interception without garbled method. (3 points)---------------------------------------------------------------10, have you ever used version control software? If you have the name of the version control software you are using? (1 points) 11. Have you ever used a template engine? If you have the name of the template engine you are using? (1 points) 12, please briefly describe your most proud of the development of (4 points) 13, for the large-volume website, what method do you use to solve the traffic problem? (4 points)-----------------------------------------------------------------14, write the code with PHP showing client IP and server IP 1 min) 15, What is the difference between statement include and require? To avoid including the same file multiple times, you can use (?) Statements instead of them?   (2 points) 16, how to modify the session's survival time (1 points). 17, there is a web address, such as the PHP Lab homepage: http://www.phpv.net/index.html, how to get its content? ($ 18), in HTTP 1.0, the meaning of status code 401 is (?); If you get a hint that "file not found" is returned, the header function is available and the statement is (?);( 2 min) 19. In PHP, Heredoc is a special string, and its end flag must be? (1 points) 20, talk about the advantages and disadvantages of asp,php,jsp (1 points) 21, talk about the understanding of MVC (1 points)-------------------------------------------------------------------22, write the top 10 names of the number of SQL, using the following table: Members (Id,username,posts,pass,email) (2 points) 23. Please indicate the difference between the value of the transfer and the reference in PHP. When is the value passed? (2 points) 24. What is the function of error_reporting in PHP? (1 points) 25. Please write a function to verify that the e-mail format is correct (2 minutes) 26. Describes how to get the current execution script path, including the obtained parameters. (2 points) 27. How to modify the session lifetime. (1 points)--------------------------------------------------------------------28, JS form popup dialog function? What is the input focus function? (2 points) 29, JS of the steering function is? How to introduce an external JS file? (2 points) What is the difference between 30, foo () and @foo ()? (1 points) 31. How do I declare a class with no methods and properties named "MyClass"? (1 points) 32. How do I instantiate an object named "MyClass"? (1 points) 33, how do you access and set the properties of a class? (2 points) What is the difference between 34, mysql_fetch_row () and mysql_fetch_array? (1 points)--------------------------------------------------------------------35, what is the GD library for? (1 points) 36, point out some ways to enter HTML code in PHP. (1 points) 37, which function can open a file to read and write to the file? (1 points) (a) Fget () (b) File_open () (c) fopen () (d) Open_file () 38, which of the following option does not add John to the users array?  (1 points) (a) $users [] = ' John ';  (b) Array_add ($users, ' John ');  (c) Array_push ($users, ' John '); (d) $users | |   = ' John '; 39, the following program will enter whether or not?  (1 points) $num = 10; function Multiply () {$num= $num * 10;  } multiply ();  Echo $num; ?> 40, use PHP to write a simple query, find out all the names of "Zhang San" and print out (2) Table name UserName Tel Content Date 313,333,663,366 College graduation 2006-10-11 Zhang 31 3612312331 Bachelor's degree 2006-10-15 021-55665566 Secondary School graduation 2006-10-15 please complete the code according to the above topic: $mysql _db=mysql_connect ("local", "root", "pas  S ");   @mysql_select_db ("db", $mysql _db); 41, how to use the following class, and explain what the following mean? (3) Class test{function Get_test ($num) {$num =md5 (MD5 ($num).  En ");  return $num;  }}----------------------------------------------------------------------------42, write out the format of the SQL statement: INSERT, UPDATE, delete (4 points) Table name UserName Tel Content Date 313,333,663,366 College Graduation 2006-10-11 313,612,312,331 Bachelor's degree 2006-10-15 Zhang 021-55665566 Secondary school graduation 2006-10-15 (a) A new record (Xiao Wang 13254748547 High school 2007-05-06) please add a SQL statement to the table (b) Use the SQL statement to update the time of the Zhang San to the current system time (c) write out delete all records named Zhang Xi 43, please write The meaning of the data type (int char varchar datetime text); What is the difference between varchar and char (2 points) 44, the MYSQ type (usually the table ID field) must be set to (?)  Field (1 points) 45, write out the following program output results (1 points) $b = 201;  $c = 40;  $a = $b > $c? 4:5;  echo $a; ?> 46, detecting whether a variable has a set function isNo? is the function empty? (2 points)-----------------------------------------------------------------------------47, the function that gets the total number of query result sets is? (1 points) 48, $arr = Array (' James ', ' Tom ', ' Symfony '); Please print out the value of the first element (1 points) 49, please separate the value of the array of 41 questions with ', ' and merge into a string output (1 points) 50, $a = ' abcdef '; Please take out the value of $ A and print out the first letter (1 points) 51, PHP can and SQL Server/oracle database connection? (1 points) 52, please write out the PHP5 permission control modifier (3 min) 53, please write out the php5 constructor and destructor (2 points)------------------------------------------------------------- -----------------54, the following please complete with phpMyAdmin (a) to create a press release system, the table named message has the following fields (3 points) ID Article ID title article title content article contents category_id Article Category ID hits hits (ii) same as above press release system: Table comment Record user reply content, field as follows (4 min) comment_id reply ID ID, ID in associated message table Comment_content reply inside By querying the database needs to get the following format of the article title list, and according to the number of replies sorted, reply to the highest ranked in the first Article ID article title click Reply Number with an SQL statement to complete the above query, if the article does not reply to the number of replies displayed as 0 (iii) the above Content management system, table Categ  Ory Save the classification information, the fields are as follows (3 points) category_id int (4) not NULL auto_increment;  Categroy_name varchar (+) not null;   When a user enters an article, select the article category by selecting the drop-down menu to write out how to implement this drop-down menu in the blanks 1. In PHP, the name of the current script (excluding path and query string) is recorded in the predefined variable ____, while the URL linked to the current page is recorded in the predefined variable ____. 2The execution program segment will output ____.   3. In HTTP 1.0, the meaning of status code 401 is ____; If you return a prompt for "file not found", the header function is available and the statement is ____.   4. The function of array function arsort is ____; the function of statement error_reporting (2047) is ____.   The database connection string format in 5.PEAR is ____.   6. Write a regular expression that js/vbs all the scripts on the Web page (that is, remove the scrīpt tag and its contents): ____.   7. Install PHP in the Apache module, in the file http.conf the first to dynamically load the PHP module with the statement ____, and then use the statement ____ so that Apache will all files with the extension PHP as PHP script processing.   8. Statements include and require can include another file in the current file, the difference is ____; to avoid including the same file multiple times, you can replace them with a statement ____.   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 ____.   10. A parameter of a function cannot be a reference to a variable unless the ____ is set to ON in PHP.ini. The meaning of the left join in 11.SQL is ____. 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, you can use the SQL statement ____.   12. In PHP, Heredoc is a special string, and its end flag must be ____. Programming question 1. Write a function, as efficiently as possible, to remove the file extension from a standard URL for example: http://www.sina.com.cn/abc/de/fg.php?id=1 need to remove PHP or. php 2. In the HTML language, the meta tag of the header of the page can be used to output the encoding format of the file, the following is a standard meta-statement use the PHP language to write a function, a standard HTML page similar to the META tag in the charset part of the value of BIG5 please note Meaning: 1. The full HTML page needs to be processed, not just this META statement 2. Ignore Case 3.' and ' are interchangeable here at 4. ' Content-type ' on both sides of the quotation marks can be ignored, but ' text/html; CHARSET=GBK ' on both sides of the No. 5. Note Handle extra spaces 3.  Write a function that calculates the relative path of the two files as $a = '/a/b/c/d/e.php ';  $b = '/a/b/12/34/c.php '; Calculate $b relative path relative to $a should be: /..   /C/D () Add 3. Write a function that can traverse all the files and subfolders under a folder. 4. Briefly describe the implementation principle of infinite classification in the forum.

http://www.bkjia.com/PHPjc/477539.html www.bkjia.com true http://www.bkjia.com/PHPjc/477539.html techarticle 1, the time format of the previous day with PHP printed is 2006-5-10 22:21:21 (2 minutes) 2, Echo (), print (), Print_r () the difference (3 points) 3, the ability to make HTML and PHP separated from the use of the template (1 points) 4, use which ...

  • Related Article

    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.