some basic questions in php

u can say interview questions at initial

Page 1 of 1

5 Replies - 13552 Views - Last Post: 23 March 2006 - 10:50 PM Rate Topic: -----

#1 gotstuck  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 14
  • Joined: 22-March 06

some basic questions in php

Posted 22 March 2006 - 11:05 PM

i would be thankful if someone help me in answering these!
i am giving below a list of interview questions

1. What are the differences between Get and post methods in form submitting, give the case where we can use get and we can use post methods

2. who is the father of php and explain the php versions

3. How can we submit a from without a submit button

4. Howmany ways we can retrieve the date in resultset of mysql using php

5. What is the difference between mysql_fetch_object and mysql_fetch_array?

6. what is the difference between $message and $$message

7. how can we extract string 'abc.com ' from a string 'http://info@abc.com' using regular expression of php

8. how can we create a database using mysql

9. what is the differences between require and include, include_once

10. can we use include("abc.php") two times in a php age "makeit.php"

11. what are the different tables present in mysql , which type of table is genereted when we are creating a table in the following syntax : create table employee(eno int(2),ename varchar(10))

12. Functions in IMAP, POP3 AND LDAP

13. how can i execute a php script using command line

14. Suppose your zend engine supports the mode <? ?> then how can u configure your php zend engine to support <?php ?> mode

15. shoppingcart online validation ie how can we configure the paypals

16. what is meant my nl2br()

17. draw the architecture of zend engine

18. what are the current versions of apache, php, mysql

19. what are the reasons for selecting lamp(linux,apache,mysql,php) instead of combination of other software programmes,servres and operating systesm

20. how can we encrypt and decrypt a data present in a mysqltable using mysql

21. how can we encrypt the username and password using php

22. what are the features and advantages of OBJECT ORIENTED PROGRAMMING

23. what are the differences between PROCEDURE ORIENTED LANGUAGES AND OBJECT ORIENTED LANGUAGES

24. what is the use of frined function

25. what are the differences between public,private, protected, static, transient,final and volatile

26. what are the different types of errors in php

27. what is the functionality of the function strstr and stristr

28. What are the differences between PHP 3 and PHP 4 and PHP 5

29. how can we convert asp pages to php pages

30. what is the functionality of the function htmlentities

31. how can we get second of the current time using date functio

32. how can we convert the timezones using php

33. what is meant by urlencode and urldocode

34. what is the difference between the functions unlink and unset

35. how can we register the varials into a session

36. how can we get the properties(size,type,width,height) of an image using php image functions

37. how can we get the browser properties using php

38. What is the maxmimum size of a file that can be uploaded using php and how can we change this

39. how can we increase the execution time of a php script

40. how can a take a backup of a mysql table and how can we restore it.

41. how can we optimize or increase the speed of a mysql select query

42. howmany ways can we get the value of current session id

43. how can we destroy the session, how can we unset the variable of a session

44. how can we destroy the cookie

45. howmany ways we can pass the variable through the navigation between the pages

46. what is the difference between ereg_replace() and eregi_replace()

47. what are the different functions in sorting an array

48. how can we know the count/number of elements of an array

49. what is the php predefined variable that tells the what types of images that php supports

50. how can i know that a variable is a number or not using a javascript

51. how many ways we upload a file using php

52. how can i retrieve vaues from one database server and store them in other database server using php

53. list out the predefined classes in php

54. how can i make a script that can be bilanguage(supports english, german)

55. what is the difference betwen abstract class and interface

56. how can we send mail using javascript

57. how can we repair a mysql table

58. what are the advantages of storedprocedures, triggers, indexes

59. what is the maxmimum length of a table name,databasename, fieldname in mysql

60. howmany values can the SET function of mysql takes

61. what are the othter commands to know the structure of table using mysql commands except explain command

62. How many tables will create when we create table, whay are they

63. what is the purpose of the following files having extensions 1)frm 2)MYD 3)MYI

64. what is maximum size of a database in mysql

65. Give the syntax of Grant and Revoke commands

66. Explain Normalization concept

67. how can we find the number of rows in a table using mysql

68. how can we find the number of rows in a resultset using php

69. howmany ways we can we find the current date using mysql

70. what are the advantages and disadvantages of CASCADE STYLE SHEETS

71. what type of inhertance that php supports

72. how can increase the performance of mysql select query

73. The structure of table viewbuyers is

+----------------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------------+-------------+------+-----+---------+----------------+
| user_pri_id | int(15) | | PRI | NULL | auto_increment |
| userid | varchar(10) | YES | | NULL | |
+----------------+-------------+------+-----+---------+----------------+

the value of user_pri_id the lastrow 2345 then what will happen in the following conditions 1) Condition1: Delete all the rows and insert another row then what is the starting value for this autoincremented field user_pri_id , 2) Condition2: Delete the lastrow(having the field value 2345) and insert another row then what is the value for this autoincremented field user_pri_id

74. what are the advantages/disadvantages of mysql and php

75. what is the difference between GROUP BY and ORDER BY in sql

76. what is the difference between char and varchar datatypes

77. what is the functionality of md5 function in php

78. how can i load data from a text file into a table

79. how can we know the number of days between two given dates using mysql

80. how can we know the number of days between two given dates using php

81. how can we change the name of a column of a table

82. how can we change the name and data type of a column of a table

83. what are the differences between drop a table and truncate a table

84. When you want to show some part of a text displayed on an HTML page in red font color, what different possibilites are there to do this? What are the advantages/disadvantages of these methods?

85. When viewing an HTML page in a Browser, the Browser often keeps this page in its cache. What can be possible advantages/disadvantages of page caching? How can you prevent caching of a certain page (please give several alternate solutions)?

86. What are the different methods of passing data or information between two calls of a web page? What are the advantages/disadvantages of these methods?

87. An Apache webserver is running on a Linux system. Suddenly, the webserver delivers the pages very slow. How could you find out possible reasons for that (when using system commands, please specify their names)?

88. What are the different ways to login to a remote server? Explain the means, advantages and disadvantages?

89. Please give a regular expression (preferably Perl/PREG style) which can be used to identify the URL from within a HTML link tag. Example: The regular expression should match the tag <A HREF="http://www.insurgent.net/"> and give the URL ("http://www.insurgent.net/") as a return result. Tags should also be matched if they contain other attributes than the HREF attribute.

90. A select query over a large table runs very slow because of the growing number of entries in that table. What different measures could be taken to improve speed?

91. A company wants to store their invoices in a database. They already have their customers and articles in that database. Both customer and article are each identifed by an unique integer value. Please create the SQL statements for creating the necessary table(s) for storing the invoices in a MySQL database. An invoice should hold information like invoice number, customer, date, article(s) and quantity etc.
92. For the database from the previous question, please give an SQL query which returns the invoice number of all invoices which contain the article with the number "1234". The query should be able to run under a MySQL 4.0 database.

93. How would you backup and restore a big MySQL database? What are the advantages of the approach which you have taken over the others?

94. Create a PHP web script with the following attributes: on start, three HTML form elements are shown: an string input field, a checkbox field, a dropdown/pulldown list with 5 elements and a submit button. On submission, the form should be redisplayed (while remaining all options/inputs as the user has selected/entered them). Additionally, the selections/inputs of the user should be displayed in text. Please solve this without the use of any external libraries.

95. what is meant by MIME

96. what is meant by PEAR in php

97. how can I use the com components in php

98. how can I load the dll’s dynamically

99. how many ways we can give the output to a browser

100. how can we know that a session is started or not

there r some for which i have anwers, but i guess expert's ansers are always superb
so i want to have that
i hope i am not wasting much space of this forum
i wish this post is useful for many people like me
thanx

Is This A Good Question/Topic? 0
  • +

Replies To: some basic questions in php

#2 fyrestorm  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 10
  • View blog
  • Posts: 3,113
  • Joined: 04-April 02

Re: some basic questions in php

Posted 22 March 2006 - 11:44 PM

are these for school, because there's way too many there for them to be just in general questions...

try the man pages http://www.php.net
Was This Post Helpful? 0
  • +
  • -

#3 snoj  Icon User is offline

  • Married Life
  • member icon

Reputation: 84
  • View blog
  • Posts: 3,564
  • Joined: 31-March 03

Re: some basic questions in php

Posted 23 March 2006 - 12:02 AM

100 questions is not "some". Also, some of them don't have much to do with PHP.

If you have a question, most likely it's already been answered someplace here. Just do a search and if nothing shows up ask away. Chances are some other memeber already knows it, knows where to find it here, or will try to point you in the right direction.
Was This Post Helpful? 0
  • +
  • -

#4 pioSko  Icon User is offline

  • still.dreaming
  • member icon

Reputation: 23
  • View blog
  • Posts: 1,888
  • Joined: 06-June 03

Re: some basic questions in php

Posted 23 March 2006 - 02:48 AM

This looks like an exam or test of some sorts... are you cheating? Beacause, you'll only be cheating yourself.
Was This Post Helpful? 0
  • +
  • -

#5 knownasilya  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 148
  • Joined: 11-January 06

Re: some basic questions in php

Posted 23 March 2006 - 07:51 AM

Wow, good resource for me, practice, i wonder how many I can answer. :P
Was This Post Helpful? 0
  • +
  • -

#6 gotstuck  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 14
  • Joined: 22-March 06

Re: some basic questions in php

Posted 23 March 2006 - 10:50 PM

well, it's not a test
i have copied these questions from some websites with the "search php interview questions"
i am preparing for interview, that's why i thought u guys can help me out
i know that it's not easy to get all answers at the same time for me
i have solved some 30 among them
and will keep on googling for rest
i hope this helps someone for interview or ......gaining some basic knowledge abt php
sorry if i made mistake
thanx anyways for ur time guys
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1