I have managed to use scp with php, by fixing up the nobody account.
I now have the problem that I would like to update/create directories on a remote machine using a pre-script so that I never have the problem that the
remote directory doesnt exist.
however when I create a similar script with say:
system("ssh drevil@austin" 2>&1);
system("mkdir newdir" 2>&1);
I recieve an error stating that I am not allow to have a pseudo-terminal allocated.
The only other way I can think of to do this, requires writing a script (shell) to login and execute a command (passed at the commandline) or somthing.
Is this the only way to do such a task, or am I missing something.
Cheers,
Pete