quicky paid php admin type work

0 views
Skip to first unread message

Doug Boude

unread,
Dec 29, 2009, 5:34:03 PM12/29/09
to Refresh...@googlegroups.com
Alright PHP admin guru types. I'm putting out the call for paid assistance. I believe what I need is relatively simple for someone with the right experience. My setup: IIS7, PHP 4.4.9, Windows 2k8 server (upgrading php is not an option).

In a nutshell, I need to be able to transfer a file within my PHP code using SFTP. I have been googling and experimenting for days now, and have not yet gotten anything to work. I have attacked this from several angles:

1. cURL - I managed to enable cURL, but the version I have doesn't provide for using the secure ftp protocol. Could not manage to upgrade my version of cURL to the current one, which is supposed to support it.
2. ssh2lib - could not manage to get ssh2 enabled in php.
3. phpseclib - seemingly got it installed, put code in place to utilize it, and consistently received login failure with known good credentials.
4. third party command line sftp utility. Created working batch file that uploads the file successfully. When attempting to run it via exec(), the same code does not upload the file (batch file is definitely being called...changed the code to a simple "dir" command and received output).

So, I'm at my wit's end and don't know where to go from here. I was close on each of the approaches, but am not knowledgeable enough about how to install/upgrade php utilities to get it working. If anybody is available and able to assist, I would love to negotiate. Just email me direct to chat about it. My preference is to do the work myself and have someone guide me along, step by step.

Doug Boude  :0)

Paul

unread,
Dec 29, 2009, 5:41:57 PM12/29/09
to refresh...@googlegroups.com
Doug,

I for one would like to know more about why the PHP upgrade is not an option. From what I've gathered on your previous posts new version might solve your issue.

P-

--
Our Web site: http://www.RefreshAustin.org/
 
You received this message because you are subscribed to the Google Groups "Refresh Austin" group.
 
[ Posting ]
To post to this group, send email to Refresh...@googlegroups.com
Job-related postings should follow http://tr.im/refreshaustinjobspolicy
We do not accept job posts from recruiters.
 
[ Unsubscribe ]
To unsubscribe from this group, send email to Refresh-Austi...@googlegroups.com
 
[ More Info ]
For more options, visit this group at http://groups.google.com/group/Refresh-Austin

Doug Boude

unread,
Dec 29, 2009, 5:48:18 PM12/29/09
to refresh...@googlegroups.com
Paul, it's not an option because it breaks an existing legacy app that I don't have the time to try and retrofit to work under 5.x. It's huge, old, ugly, spaghetti that is humming along fine under 4.4.9. I attempted to run it under 5.x in a test environment and it just fell apart due to my predecessor's horrible coding habits that aren't "excused" by 5.

yawnmoth

unread,
Dec 29, 2009, 8:13:48 PM12/29/09
to Refresh Austin

On Dec 29, 4:34 pm, Doug Boude <dougbo...@gmail.com> wrote:
> Alright PHP admin guru types. I'm putting out the call for paid assistance.
> I believe what I need is relatively simple for someone with the right
> experience. My setup: IIS7, PHP 4.4.9, Windows 2k8 server (upgrading php is
> not an option).
>
> In a nutshell, I need to be able to transfer a file within my PHP code using
> SFTP. I have been googling and experimenting for days now, and have not yet
> gotten anything to work. I have attacked this from several angles:
>
> 1. cURL - I managed to enable cURL, but the version I have doesn't provide
> for using the secure ftp protocol. Could not manage to upgrade my version of
> cURL to the current one, which is supposed to support it.
> 2. ssh2lib - could not manage to get ssh2 enabled in php.
> 3. phpseclib - seemingly got it installed, put code in place to utilize it,
> and consistently received login failure with known good credentials.

The phpseclib author does provide fairly good support. Maybe you
should try posting on his support forum instead of posting on the
"Refresh Austin" group. The first thing you'll likely be asked is for
a log of the transaction which can be generated thusly:

<?php
include('Net/SSH2.php');
define('NET_SSH2_LOGGING', true);

$ssh = new Net_SSH2('domain.tld');
if (!$ssh->login('username', 'password')) {
exit('bad login');
}
echo $ssh->getLog();
?>

My first thought, myself, is that maybe your server only supports
keyboard-interactive authentication and not password authentication,
but the logs should reveal that definitively. Either way, I would
recommend posting on the official support forum.

yawnmoth

unread,
Dec 29, 2009, 8:31:44 PM12/29/09
to Refresh Austin
Have you tried posting on the official phpseclib support forum? The
author seems to be fairly proactive in providing support and it
certainly seems like a better venue for questions regarding it than
this place.

Having asked for support there, myself, I can say that the first thing
you'll probably be asked for are your logs, which can be generated
thusly:

<?php
include('Net/SSH2.php');
define('NET_SSH2_LOGGING', true);

$ssh = new Net_SSH2('domain.tld');
if (!$ssh->login('username', 'password')) {
exit('bad login');
}
echo $ssh->getLog();
?>

Off hand, my own suspicion would be that your server uses keyboard-
interactive authentication and not password authentication but the
logs would reveal that for sure.

On Dec 29, 4:34 pm, Doug Boude <dougbo...@gmail.com> wrote:

Reply all
Reply to author
Forward
0 new messages