Getting Command Output via SSH2 Functions in PHP

Running command and getting the output via ssh2 is not as straightforward as running command directly using function exec(), it requires a few function calls using “stream”. The following code illustrates how to do it: // get connection $conn = ssh2_connect($host, $port); // login via pub-private keys ssh2_auth_pubkey_file($conn, $username, $publicKey, …

Remove ‘The content of this field is kept private and will not be shown publicly.’ Form Help Text in Drupal 6

Using profile module, I have set up a number of fields for user information. Because they are for members’ profile only, I set them as private field in the backend, but when user is editing the form in the frontend, each field shows help text “The content of this field …