Re: [PHP] Copy Function Errors

2008-07-17 Thread Sam Stelfox
You need to test using regular FTP, SFTP goes over SSH, while the PHP script your trying to use is making use of regular old FTP. Make sure that the linux machine has the ports open for FTP and that you have an FTP server running on it (SSH is not one). Wei, Alice J. wrote: > It sounds to me like

RE: [PHP] Copy Function Errors

2008-07-17 Thread Wei, Alice J.
- From: Wei, Alice J. [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2008 7:50 AM To: Sam Stelfox Cc: php-general@lists.php.net Subject: RE: [PHP] Copy Function Errors It sounds to me like your problem is now about the authentication. By default most linux distributions do not give apache a password

RE: [PHP] Copy Function Errors

2008-07-17 Thread bruce
and a little more about what you're trying to do in transferring the files... -Original Message- From: Wei, Alice J. [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2008 7:50 AM To: Sam Stelfox Cc: php-general@lists.php.net Subject: RE: [PHP] Copy Function Errors It sounds to me

RE: [PHP] Copy Function Errors

2008-07-17 Thread Wei, Alice J.
It sounds to me like your problem is now about the authentication. By default most linux distributions do not give apache a password. I personally think using apache would be a bad idea. How about creating a user on the linux box your trying to put the files on to make it's primary group apache (ma

Re: [PHP] Copy Function Errors

2008-07-17 Thread Sam Stelfox
ly written to $local_file\n"; > } else { > echo "There was a problem\n"; > } > > // close the connection > ftp_close($conn_id); > > Thanks in advance. > > Alice > > -Original Message- > From: Boyd, Todd M. [mailto:[EMAIL PROTECTED] &

RE: [PHP] Copy Function Errors

2008-07-17 Thread Wei, Alice J.
Wednesday, July 16, 2008 2:28 PM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: RE: [PHP] Copy Function Errors > -Original Message- > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 16, 2008 3:46 PM > To: Robert Cummings > Cc: php-general@li

RE: [PHP] Copy Function Errors

2008-07-16 Thread Wei, Alice J.
et Subject: RE: [PHP] Copy Function Errors > -Original Message- > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 16, 2008 3:46 PM > To: Robert Cummings > Cc: php-general@lists.php.net > Subject: RE: [PHP] Copy Function Errors ---8<--- snip

RE: [PHP] Copy Function Errors

2008-07-16 Thread bruce
oyd, Todd M. [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2008 2:28 PM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: RE: [PHP] Copy Function Errors > -Original Message- > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 16, 2008 3:46 PM &g

RE: [PHP] Copy Function Errors

2008-07-16 Thread Boyd, Todd M.
> -Original Message- > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 16, 2008 3:46 PM > To: Robert Cummings > Cc: php-general@lists.php.net > Subject: RE: [PHP] Copy Function Errors ---8<--- snip > > Is there something I could do here

RE: [PHP] Copy Function Errors

2008-07-16 Thread Robert Cummings
On Wed, 2008-07-16 at 16:45 -0400, Wei, Alice J. wrote: > > Hi, > > > > I have a snippet of code here: > > > > shell_exec("tar cvf /var/www/html/test/$id/data.tar > > /var/www/html/test/$id/data"); > > > > $file1="http:/www.mysite.com/test/$id/data.tar"; > > $file2="http://www.mysite2.com/test/$id

Re: [PHP] Copy Function Errors

2008-07-16 Thread Robert Cummings
On Wed, 2008-07-16 at 16:53 -0400, Daniel Brown wrote: > On Wed, Jul 16, 2008 at 4:45 PM, Wei, Alice J. <[EMAIL PROTECTED]> wrote: > > > > Is there something I have missed here? > > Are you considered a "special student" at the University? Now, now, no need to be mean. We were all noobs at on

Re: [PHP] Copy Function Errors

2008-07-16 Thread Daniel Brown
On Wed, Jul 16, 2008 at 4:45 PM, Wei, Alice J. <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I have a snippet of code here: >> >> shell_exec("tar cvf /var/www/html/test/$id/data.tar >> /var/www/html/test/$id/data"); >> >> $file1="http:/www.mysite.com/test/$id/data.tar"; >> $file2="http://www.mysite2.com

RE: [PHP] Copy Function Errors

2008-07-16 Thread Wei, Alice J.
> Hi, > > I have a snippet of code here: > > shell_exec("tar cvf /var/www/html/test/$id/data.tar > /var/www/html/test/$id/data"); > > $file1="http:/www.mysite.com/test/$id/data.tar"; > $file2="http://www.mysite2.com/test/$id/.tar";; > > copy($file1,$file2); > > I got the following error in the acc

Re: [PHP] Copy Function Errors

2008-07-16 Thread Robert Cummings
On Wed, 2008-07-16 at 15:58 -0400, Wei, Alice J. wrote: > Hi, > > I have a snippet of code here: > > shell_exec("tar cvf /var/www/html/test/$id/data.tar > /var/www/html/test/$id/data"); > > $file1="http:/www.mysite.com/test/$id/data.tar"; > $file2="http://www.mysite2.com/test/$id/.tar";; > > c

[PHP] Copy Function Errors

2008-07-16 Thread Wei, Alice J.
Hi, I have a snippet of code here: shell_exec("tar cvf /var/www/html/test/$id/data.tar /var/www/html/test/$id/data"); $file1="http:/www.mysite.com/test/$id/data.tar"; $file2="http://www.mysite2.com/test/$id/.tar";; copy($file1,$file2); I got the following error in the access log of the server

Re: [PHP] copy function?

2004-11-16 Thread Richard Davey
Hello Garth, Tuesday, November 16, 2004, 2:42:31 PM, you wrote: GHS> Which event handler of the button should I use and hoe should I construct GHS> the function? This is a JavaScript question. Please post to a JavaScript mailing list. Best regards, Richard Davey -- http://www.launchcode.co.u

Re: [PHP] copy function?

2004-11-16 Thread Robby Russell
On Tue, 2004-11-16 at 16:42 +0200, Garth Hapgood - Strickland wrote: > I have a button which I want to add a function to, so that when it is > clicked, the data from one will be copied to another > > Which event handler of the button should I use and hoe should I construct > the function? > > G

Re: [PHP] copy function?

2004-11-16 Thread Matt M.
> I have a button which I want to add a function to, so that when it is > clicked, the data from one will be copied to another > > Which event handler of the button should I use and hoe should I construct > the function? onclick. This is not really a php question. do some googleing for javasc

RE: [PHP] copy function?

2004-11-16 Thread Jay Blanchard
[snip] I have a button which I want to add a function to, so that when it is clicked, the data from one will be copied to another Which event handler of the button should I use and hoe should I construct the function? [/snip] Both textareas on the same page? Want to do the copy without making a

Re: [PHP] copy function?

2004-11-16 Thread Greg Donald
On Tue, 16 Nov 2004 16:42:31 +0200, Garth Hapgood - Strickland <[EMAIL PROTECTED]> wrote: > I have a button which I want to add a function to, so that when it is > clicked, the data from one will be copied to another > > Which event handler of the button should I use and hoe should I construct >

[PHP] copy function?

2004-11-16 Thread Garth Hapgood - Strickland
I have a button which I want to add a function to, so that when it is clicked, the data from one will be copied to another Which event handler of the button should I use and hoe should I construct the function? Garth -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] copy function

2003-12-18 Thread Omar
Is there a way to copy a file from 1 server to a different one? I have this code in a win 2k server, and i try to copy the file to a win NT server: if (is_file($file_att)) if (copy($file_att,'\servername\folder\'.$file_name)) echo "succesful"; else echo "failure"; It gives me this war

RE: [PHP] Copy function usage ?

2001-08-09 Thread scott [gts]
mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 09, 2001 11:41 AM > To: Tamas Bucsu; [EMAIL PROTECTED] > Subject: RE: [PHP] Copy function usage ? > > > You need to make sure that what ever user the webserver/php runs under has > permissions to read from the source folder/file a

RE: [PHP] Copy function usage ?

2001-08-09 Thread Jon Farmer
ntanet International Ltd www.enta.net Tel 01952 428969 Mob 07968 524175 -Original Message- From: Tamas Bucsu [mailto:[EMAIL PROTECTED]] Sent: 09 August 2001 16:36 To: [EMAIL PROTECTED] Subject: [PHP] Copy function usage ? Hi guys, I have a problem that's killin' me. As I&#x

[PHP] Copy function usage ?

2001-08-09 Thread Tamas Bucsu
Hi guys, I have a problem that's killin' me. As I'm not very good at Linux I don't know how to set the properties of the folder pics to be able to use the copy function. (If I'm right and the problem is not some else) Please help. Here's the code: if (file_exists($userfile)) { copy("$userf