01-16-2008
Quote:
Originally Posted by
frank_rizzo
sweet. I did not realize PHP had an API for ssh. learn something new every day.
It can be downloaded from PECL
here
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do i use scp to copy a file from my home directory on a server I am logged into, to the computer I am using?
I thought it would be something like:
scp filename mycomp.company.org
Thanks. (2 Replies)
Discussion started by: ignus7
2 Replies
2. UNIX for Advanced & Expert Users
I am trying to transfer a 10g files using scp, but I am getting timeout errors is there anywhere that I can modify a config file or something to increase the time. (4 Replies)
Discussion started by: rbizzell
4 Replies
3. Shell Programming and Scripting
hi can any one pls tell me how to copy a file from a remote host to the same remote host with a timestamp, i need to use only scp.
thnks (4 Replies)
Discussion started by: bkan77
4 Replies
4. UNIX for Advanced & Expert Users
hi all
in my script i was using the "scp" command to copy 2 files from a certain directory on server A to the same directory on another server B, but for some reason its only copying the first file in the directory. This is the frst time that i used the scp command,any ideas appreciated.
thnks (5 Replies)
Discussion started by: bkan77
5 Replies
5. Shell Programming and Scripting
I normally download a directory recursively using:
scp -r <name>@host:<path> .
This has worked fine. As everyone knows this will download all of the directory named in <path> and all of the sub directories.
I would like to know if it is possible to not download a particular file if it... (5 Replies)
Discussion started by: cpabrego
5 Replies
6. AIX
1. how to move files in a directory using scp ?
2. how to move the entire directory ?
3. Will the file and the directory permissions affect scp usage? (1 Reply)
Discussion started by: samsungsamsung
1 Replies
7. Shell Programming and Scripting
Hi All,
Please help on the below command
scp -r 'directory name'inrvgo@IP:/export/home/muthu/prod_12-09-2010
I am trying to copy a directory from one server to another server using the above command but its displaing the error
(missing destination file) but the diectory was there in the... (1 Reply)
Discussion started by: thelakbe
1 Replies
8. UNIX and Linux Applications
Hi,
I am trying to do scp from server A to server B. But while doing the scp i am getting the following message.
+-----------------------------------------------------------------+
| This system is for the use of authorized users only. |
| Individuals using this computer system... (6 Replies)
Discussion started by: sidh_arth85
6 Replies
_ENV(3) 1 _ENV(3)
$_ENV - Environment variables
An associative array of variables passed to the current script via the environment method.
These variables are imported into PHP's global namespace from the environment under which the PHP parser is running. Many are provided by
the shell under which PHP is running and different systems are likely running different kinds of shells, a definitive list is impossible.
Please see your shell's documentation for a list of defined environment variables.
Other environment variables include the CGI variables, placed there regardless of whether PHP is running as a server module or CGI proces-
sor.
$HTTP_ENV_VARS contains the same initial information, but is not a superglobal. (Note that $HTTP_ENV_VARS and $_ENV are different variables
and that PHP handles them as such)
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 4.1.0 | |
| | |
| | Introduced $_ENV that deprecated $HTTP_ENV_VARS. |
| | |
+--------+---------------------------------------------------+
Example #1
$_ENV example
<?php
echo 'My username is ' .$_ENV["USER"] . '!';
?>
Assuming "bjori" executes this script
The above example will output something similar to:
My username is bjori!
Note
This is a 'superglobal', or automatic global, variable. This simply means that it is available in all scopes throughout a script.
There is no need to do global $variable; to access it within functions or methods.
getenv(3), The filter extension.
PHP Documentation Group _ENV(3)