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



What are the different ways to login to a remote server? Explain the me, advantages and disadvantage..

Answer / Shalabh Kapoor

There are several ways to log into a remote server in PHP:
1. SSH (Secure Shell) - Using 'exec' or 'ssh2_connect'. Advantages include encryption and secure communication. Disadvantage is that it requires additional setup.
2. FTP (File Transfer Protocol) - Using 'fsockopen'. Advantages include ease of use and common implementation. Disadvantage is that it is less secure than SSH.
3. Telnet - Using 'fstreams'. Advantages include compatibility with various servers and protocols. Disadvantage is that it is insecure and should not be used over untrusted networks.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What is preg_match?

1 Answers  


What is use of header() function in php? What the limitation of header()?

1 Answers  


What is the function to count elements in an array in PHP?

1 Answers  


What is the difference between array_pop() and array_push()?

1 Answers  


why we use @symbol before the variable

5 Answers   HCL, Numark,


Is age interval or ordinal?

1 Answers  


Hi all,, im completely new to PHP, started learning just 2 days before. Can anybody tell me how to run a PHP file to see the program's output? i have created some simple program in Dreamweaver CS3 but don't know how to run it...

1 Answers  


What is crypt () in php?

1 Answers  


What is the php function that removes the first element of the array and returns it?

1 Answers  


What is an abstract class in php?

1 Answers  


Do you know what's the difference between __sleep and __wakeup?

1 Answers  


What is difference between session and cookie in PHP?

1 Answers  


Categories