What are the different ways to login to a remote server? Explain the me, advantages and disadvantages?
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 |
What is preg_match?
What is use of header() function in php? What the limitation of header()?
What is the function to count elements in an array in PHP?
What is the difference between array_pop() and array_push()?
why we use @symbol before the variable
Is age interval or ordinal?
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...
What is crypt () in php?
What is the php function that removes the first element of the array and returns it?
What is an abstract class in php?
Do you know what's the difference between __sleep and __wakeup?
What is difference between session and cookie in PHP?