Cool News PHP programmer interview questions-test part-php Tutorial

Source: Internet
Author: User
Cool News PHP programmer interview questions-test part
This article introduces the interview questions for php programmers of Cool News. here, I found the notes and shared them for your reference. Topic recommendation: php interview questions and answers

1. there are three php files in the same directory with the content

A. php :-------

B. php :-------

C. php :-------

2. use a browser to access c. php. Is there any problem. If any problem exists, indicate the correct method and write the browser to view the effect. If no problem exists, write the browser to view the effect.

3. select the SQL statement from the table login that the name field contains all the information of the first 10 results of admin.

4. accurately indicate the display results of the following code

A D
B
C

5. accurately indicate the display results of the following code

6. describe the meaning and function of DTD in HTML documents.

7. check whether the following code is correct. if there is any error, indicate the error. If yes, indicate the running result.

Var arr = new Array (1, 2, 3, 4), new Array ('ABC', "def", "xyz"),); for (I = 0; I <arr. length; I ++) {document. write (arr [0])}

8. how to use javascript to obtain the position of the upper left corner of the current DOM element (obj) in the entire document

9. which methods can be used to send a request to the server using javascript without leaving the current page? briefly compare their respective features (if any)

10. write out the method for connecting php to mysql to get the next auto-increment id value. you can write multiple methods.

11. what is the difference between cgi and fastcgi? under what circumstances will you choose?

12. how to determine whether a string is a valid date pattern in Php: 13:13:13. No more than five lines of code are required.

13. in Php, how do I obtain the key value of an array?

14. what is zend optimizer?

15. how to back up data in mysql using commands

Linux operation:

1. in the vi editor, what are the commands for selecting, copying, pasting, and deleting?

2. get the number of file lines

3. upload the last five rows of the input file to another file.

4. search for rows containing "hello" in the file

5. search for commands in all subdirectories named CVS in the current directory

6. delete all commands in the directory named CVS in the current directory

7. how to run a program in the background and direct the input to the specified file

8. how to add the content of a file to the end of another file

9. how to display the output of a file in real time

10. What are the methods for regularly executing a program?

11. how to replace the specified string in the Vi editor

12. when an update occurs, files in cvs conflict with each other. How to determine the content you have edited and updated?

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.