LinuxQuestions.org
Help answer threads with 0 replies.
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, 12:40 PM   #31
athrin
Member
 
Registered: Mar 2011
Posts: 135

Original Poster
Rep: Reputation: 1

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

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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-30-2011, 12:19 AM   #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, 01: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: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

Glad it helped. Looking forward to your participation.

Kind regards,

Eric
 
Old 05-10-2011, 04: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 04:29 AM.
 
Old 05-12-2011, 12:01 AM   #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-12-2011 at 12:05 AM.
 
  


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 10:36 AM
scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-29-2008 12:41 AM
Scp B-Boy Linux - Newbie 2 07-07-2008 08:17 AM
scp help akhil.mud Programming 6 04-14-2008 09:47 PM
SCP how to the_rhino Linux - Newbie 5 02-11-2005 08:50 PM


All times are GMT -5. The time now is 02:33 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration