LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-29-2011, 11:40 AM   #31
athrin
Member
 
Registered: Mar 2011
Posts: 135

Original Poster
Rep: Reputation: 1

how to fixed it?
 
Old 04-29-2011, 11:55 AM   #32
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by athrin View Post
how to fixed it?
Hi,

With a little help from Google you can get a long way. I know next to nothing about PHP but this came up using Google. Hope it helps.

Kind regards,

Eric
 
Old 04-29-2011, 11:19 PM   #33
athrin
Member
 
Registered: Mar 2011
Posts: 135

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by EricTRA View Post
Hi,

With a little help from Google you can get a long way. I know next to nothing about PHP but this came up using Google. Hope it helps.

Kind regards,

Eric
woa!! that link super cool.. lol.. thanks for your help. if i solve i will post it here.

kind regards,
Athrin
 
Old 04-30-2011, 12:17 AM   #34
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Glad it helped. Looking forward to your participation.

Kind regards,

Eric
 
Old 05-10-2011, 03:17 AM   #35
athrin
Member
 
Registered: Mar 2011
Posts: 135

Original Poster
Rep: Reputation: 1
by adding @ infront ssh2_connect this error below already fixed but it still wont copy.
Quote:
PHP Fatal error: Call to undefined function: ssh2_connect() in /var/www/html/ip.php on line 36, referer: http://ip addrs/ip.php
but it still wont copy because this error show
Quote:
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/ssh2.so' - /usr/lib/php4/ssh2.so: cannot open shared object file: No such file or directory in Unknown on line 0
i dont know why suddenly this error appear.. before this it doesnt shown.

kind regards,
athrin

Last edited by athrin; 05-10-2011 at 03:29 AM.
 
Old 05-11-2011, 11:01 PM   #36
athrin
Member
 
Registered: Mar 2011
Posts: 135

Original Poster
Rep: Reputation: 1
yeah!!!! at last i manage to scp file!! here the code that i use hope this will be helpful with other people

script.php
Code:
$con = @ssh2_connect("$ip", 22);
@ssh2_auth_password($con, "$uname", "$pword");
@ssh2_scp_send($con, '/var/www/cgi-bin/testing.sh', '/home/testing.sh', 0644);
i copied bash file from from /var/www/cgi-bin/ to /home/

kind regards,
Athrin

Last edited by athrin; 05-11-2011 at 11:05 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help with scp 7mza Linux - Newbie 1 11-23-2009 09:36 AM
scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-28-2008 11:41 PM
Scp B-Boy Linux - Newbie 2 07-07-2008 07:17 AM
scp help akhil.mud Programming 6 04-14-2008 08:47 PM
SCP how to the_rhino Linux - Newbie 5 02-11-2005 07:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration