adplus-dvertising
frame-decoration

Question

Which one of the following statements can be used to establish port 80 connection with www.nachi.com?

a.

fsockopen(“www.nachi.com”, 80);

b.

sockopen(80,”www.nachi.com”);

c.

fsockopen(80,”www.nachi.com”);

d.

sockopen(“www.nachi.com”, 80);

Posted under PHP

Answer: (a).fsockopen(“www.nachi.com”, 80);

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which one of the following statements can be used to establish port 80 connection with www.nachi.com?

Similar Questions

Discover Related MCQs

Q. Which one of the following function is used to send an email using PHP script?

Q. How many configuration directives pertinent to PHP’s mail function are available?

Q. Which of the following statements is used to add an attachment to the mail?

Q. Which one of the following is the very first task executed by a session enabled page?

Q. How many ways can a session data be stored?

Q. Which directive determines how the session information will be stored?

Q. Which one of the following is the default PHP session name?

Q. If session.use_cookie is set to 0, this results in use of..

Q. If the directive session.cookie_lifetime is set to 3600, the cookie will live until..

Q. Neglecting to set which of the following cookie will result in the cookie’s domain being set to the host name of the server which generated it.

Q. What is the default number of seconds that cached session pages are made available before the new pages are created?

Q. What is the default time(in seconds) for which session data is considered valid?

Q. Which one of the following function is used to start a session?

Q. Which function is used to erase all session variables stored in the current session?

Q. What will the function session_id() return is no parameter is passed?

Q. Which one of the following statements should you use to set the session username to Nachi?

Q. An attacker somehow obtains an unsuspecting user’s SID and then using it to impersonate the user in order to gain potentially sensitive information. This attack is known as..

Q. Which parameter determines whether the old session file will also be deleted when the session ID is regenerated?

Q. Which function effectively deletes all sessions that have expired?

Q. Which function is used to transform PHP’s session-handler behavior into that defined by your custom handler?