Ah ok, I guess that would explain it. Thanks for your help :-)
-Original Message-
From: j's php general [mailto:php-generals-php-dot-...@jhive.net]
Sent: Thursday, April 16, 2009 10:39 AM
To: James Hill
Cc: php-general@lists.php.net
Subject: Re: [PHP] ftp_put issues
On Thu, Apr 16,
On Thu, Apr 16, 2009 at 10:24 PM, James Hill
wrote:
> The ftpData function and in fact all the php stuff is running online on my
> webserver. The pdf file is on my local machine, I'm trying to upload the
> local pdf file to the server using ftp.
>
>
>
> The dest variable I have tried with the full
Sent: Thursday, April 16, 2009 10:07 AM
To: James
Cc: php-general@lists.php.net
Subject: Re: [PHP] ftp_put issues
On Thu, Apr 16, 2009 at 9:27 PM, James wrote:
> Hi, yeah ftp manually works just fine using the same login too.
>
> James
>
> -Original Message---
lists.php.net
> Subject: Re: [PHP] ftp_put issues
>
> James wrote:
>> Hi, I'm trying to upload a pdf file from a local drive to the server using
> a
>> php routine. I've done it server to server before with no issues but this
>> just keeps failing on me.
>&g
Hi, yeah ftp manually works just fine using the same login too.
James
-Original Message-
From: Chris [mailto:dmag...@gmail.com]
Sent: Wednesday, April 15, 2009 10:09 PM
To: James
Cc: php-general@lists.php.net
Subject: Re: [PHP] ftp_put issues
James wrote:
> Hi, I'm trying to
James wrote:
Hi, I'm trying to upload a pdf file from a local drive to the server using a
php routine. I've done it server to server before with no issues but this
just keeps failing on me.
This is the function I'm calling, it connects and logs in just fine, but it
will not upload the file. T
Hi, I'm trying to upload a pdf file from a local drive to the server using a
php routine. I've done it server to server before with no issues but this
just keeps failing on me.
This is the function I'm calling, it connects and logs in just fine, but it
will not upload the file. The file I'm sen
On 24/05/07, Al <[EMAIL PROTECTED]> wrote:
Can anyone help with this. On a Linux/Apache server.
I want to simply copy a file with ftp_put() from one dir to another.
To make certain I'm pointing to the correct dirs, I'm using this:
print_r(ftp_nlist($conn_id, FTP_EP_DIR)); //It is the correct
Can anyone help with this. On a Linux/Apache server.
I want to simply copy a file with ftp_put() from one dir to another.
To make certain I'm pointing to the correct dirs, I'm using this:
print_r(ftp_nlist($conn_id, FTP_EP_DIR)); //It is the correct dir
print_r(ftp_nlist($conn_id, $rpdir)); /
When safe mode is enabled, PHP checks whether the files or directories you
are about to operate on have the same UID (owner) as the script that is
being executed. In addition, you cannot set the SUID, SGID and sticky
bits.
It means that the UID (owner) of the folder ought to be the apache us
"Chris" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> João Cândido de Souza Neto wrote:
>> Hello everyone.
>>
>> I have got some parts of my system where some files are sent and i use
>> ftp functions to save suche files.
>>
>> When i run it in my local machine, it works fi
João Cândido de Souza Neto wrote:
Hello everyone.
I have got some parts of my system where some files are sent and i use ftp
functions to save suche files.
When i run it in my local machine, it works fine but, when it is on the
server i got some errors.
I was using ftp_put to copy such fil
In both case the functions just returns false.
""Richard Lynch"" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> On Fri, October 6, 2006 3:32 pm, João Cândido de Souza Neto wrote:
>> when it is on
>> the
>> server i got some errors.
>
> If you tell us what errors, you change t
On Fri, October 6, 2006 3:32 pm, João Cândido de Souza Neto wrote:
> when it is on
> the
> server i got some errors.
If you tell us what errors, you change the problem from an infinitely
large set of what could go wrong, to a rather small set of what
probably went wrong...
--
Some people have a
Hello everyone.
I have got some parts of my system where some files are sent and i use ftp
functions to save suche files.
When i run it in my local machine, it works fine but, when it is on the
server i got some errors.
I was using ftp_put to copy such files from upload_temp folder of php to m
I figured out how to ftp a string into a remote file using the ftp streams
wrappers.
the code looks as follows (I leave out the definition of the [error logging]
callback
PLFTPServerNotifier() the prototype requirements of which can be found in the
manual):
array('overwrite' => false)));
strea
hi everyone,
I was wondering if anyone knew how (if possible) I could take a string
and ftp_put()/ftp_fput() that string directly onto the remote server as a file
(without first saving the string to disk temporarily locally)
I imagine that there is a way to create a stream that refers to the stri
Hello, I have a site that allows developers to upload current modules to
the webserver. It has been requested that when this is done, I also ftp a
backup copy to a remote server. Something is wrong here. The file upload
code works. The back ftp code works,only if I comment out the
move_uploade
Wayne Zeller wrote:
Marek Kilimajer wrote:
30 seconds? This must be your firewall blocking connections from
outside world. Use ftp_pasv() to turn on passive mode.
That did the trick. Thanks s much!
Marek shoots, Marek scores :-)
Wayne
--
PHP General Mailing List (http://www.php.net/)
To unsub
Marek Kilimajer wrote:
30 seconds? This must be your firewall blocking connections from outside
world. Use ftp_pasv() to turn on passive mode.
That did the trick. Thanks s much!
Wayne
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Wayne Zeller wrote:
Marek Kilimajer wrote:
You must use ftp_fput() because you are using open file handle.
Check that tmpfile() did not fail. Then make sure you are in the right
directory after logging in the ftp server.
That's what I get for trying to put together code for my post during
attemp
Marek Kilimajer wrote:
You must use ftp_fput() because you are using open file handle.
Check that tmpfile() did not fail. Then make sure you are in the right
directory after logging in the ftp server.
That's what I get for trying to put together code for my post during
attempts to do it several d
Wayne Zeller wrote:
My first attempt at posting this appears to have failed, so I'll try
again. My apologies if this is a duplicate...
I can't for the life of me figure out why this won't work. I am
downloading a file from a remote host via ftp, processing it and
modifying part of it, and the
My first attempt at posting this appears to have failed, so I'll try
again. My apologies if this is a duplicate...
I can't for the life of me figure out why this won't work. I am
downloading a file from a remote host via ftp, processing it and
modifying part of it, and then uploading the upda
On Thursday 16 December 2004 00:54, Lowell Allen wrote:
> But trying to avoid writing to the local server by using ftp_put()
> instead, this does not work:
My manual says ftp_put() - "Uploads a file to the FTP server"
And no, I can't find any command to upload a string in memory as a file. If
I'm trying to FTP a string value as a file without writing it to the
local server as a file, but I can't get ftp_put() to work. If I read a
file from the server, ftp_fput() works:
$fh = fopen("test.txt", "r");
$upload = ftp_fput($conn_id, $destination_file, $fh, FTP_ASCII);
if(!$upload) {
I am using the FTP_PUT command in conjunction with a form:
upload.php:
Everything seems to work except the put statement.
$upload = ftp_put($conn_id, $destination_file, $_POST[imagefile],
FTP_BINARY);
I am connecting to the server and it is replacing the old image file with a
0 kb file.
Per
jpb wrote:
I am using the FTP_PUT command in conjunction with a form:
upload.php:
Everything seems to work except the put statement.
$upload = ftp_put($conn_id, $destination_file, $_POST[imagefile],
FTP_BINARY);
I am connecting to the server and it is replacing the old image file with a
0 kb fil
Julian wrote:
i am trying to get a file from my local c drive to my server using something
other than a form.
This is pretty much an impossible task for server side scripting. You
can perhaps use an applet to upload either via FTP or HTTP.
but marek's last mail is probably the best solution.
Julian wrote:
well, i suspect i am at a dead end. here is the layout of things.
we want to put up an internet kiosk at certain thoroughbred auctions to
allow people to send ecards as well as contact associates. we have a web cam
on the kiosk and a partner came up with the idea of letting them sen
well, i suspect i am at a dead end. here is the layout of things.
we want to put up an internet kiosk at certain thoroughbred auctions to
allow people to send ecards as well as contact associates. we have a web cam
on the kiosk and a partner came up with the idea of letting them send photos
of
Julian wrote:
i am trying to get a file from my local c drive to my server using something
other than a form.
Hmm, you can run an ftp server on your local machine and use php script
on the server to retrieve the files. http server will work just as well.
Is this what you want?
thanks,
julian
"J
i am trying to get a file from my local c drive to my server using something
other than a form.
thanks,
julian
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Sunday 26 September 2004 06:38, Julian wrote:
>> Maybe I should be more specific about what I am trying to
On Sunday 26 September 2004 06:38, Julian wrote:
> Maybe I should be more specific about what I am trying to do. I may be way
> off base in my approach.
>
> I want to upload using ftp a file from my local c drive (c:\somefile.text)
> to my server. I have been trying the ftp_put function example in
Maybe I should be more specific about what I am trying to do. I may be way
off base in my approach.
I want to upload using ftp a file from my local c drive (c:\somefile.text)
to my server. I have been trying the ftp_put function example in the manual
and it is failing. It reports "There was a p
Julian wrote:
Hello,
I need to use FTP to upload a local file to a server. The uploads must be
done through FTP and not HTTP. Unfortunately, the example in the manual is
not working for me. If someone has any suggestions I would really appreciate
it.
Not much information. There is not error chec
Hello,
I need to use FTP to upload a local file to a server. The uploads must be
done through FTP and not HTTP. Unfortunately, the example in the manual is
not working for me. If someone has any suggestions I would really appreciate
it.
Thanks,
Julian
--
PHP General Mailing List (http://www
On Sunday 27 July 2003 10:22, Rausch Alexandru wrote:
> I have some problem with uploading a file from my harddisk using a ftp
> connection. Here are the 2 files:
You don't upload local files using the ftp_*() functions. You follow the
examples in manual > Handling file uploads.
--
Jason Wong -
I have some problem with uploading a file from my harddisk using a ftp connection.
Here are the 2 files:
test.php contains the form:
Titlu gif
::
and test2.php is the script for upload :
";
}
$util=strtolower($util);
$destination="tit.gif";
if(ftp_put($con, $destination, $util,
I have some problem with uploading a file from my harddisk using a ftp connection.
Here are the 2 files:
test.php contains the form:
Titlu gif
::
and test2.php is the script for upload :
";
}
$util=strtolower($util);
$destination="tit.gif";
if(ftp_put($con, $destination, $util,
I have some problem with uploading a file from my harddisk using a ftp connection.
Here are the 2 files:
test.php contains the form:
Titlu gif
::
and test2.php is the script for upload :
";
}
$util=strtolower($util);
$destination="tit.gif";
if(ftp_put($con, $destination, $util,
mothy Hitchens )" schrieb:
> >
> > > Using ftp_login() ??
> > >
> > > Timothy Hitchens (HiTCHO)
> > > Open Platform Consulting
> > > e-mail: [EMAIL PROTECTED]
> > >
> > > > -Original Message-
> > > > Fr
Using ftp_login() ??
> >
> > Timothy Hitchens (HiTCHO)
> > Open Platform Consulting
> > e-mail: [EMAIL PROTECTED]
> >
> > > -Original Message-
> > > From: Oliver Witt [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, 9 January 2003
mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, 9 January 2003 5:30 AM
> > To: [EMAIL PROTECTED]; Timothy Hitchens )
> > Subject: Re: [PHP] ftp_put: permission denied
> >
> >
> > "Timothy Hitchens )" schrieb:
> >
> > > I am assuming you have t
Using ftp_login() ??
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Oliver Witt [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 9 January 2003 5:30 AM
> To: [EMAIL PROTECTED]; Timothy Hitchens )
> Subject: Re
"Timothy Hitchens )" schrieb:
> I am assuming you have testing from a desktop client.
>
> Are you sure that the PHP script has been logged in??
>
> Can you see via a log file of the successful authentication??
>
I logged in using the same information as I used to upload that script.
if ((!$conn_
Oliver Witt [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 9 January 2003 4:53 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] ftp_put: permission denied
>
>
> Hi,
> I am running a really simple php script to upload files on my
> server via ftp. But it always return this war
Hi,
I am running a really simple php script to upload files on my server via
ftp. But it always return this warning: ftp_put(): Permission denied
I can't have to do anything with CHMOD can it? I mean it's ftp!! I don't
know what else it is but I guess it's a pretty common problem.
Thx for any help,
Well I'm having the same problem... no useful suggestions from ME yet.
:)
- Victor > www.argilent.com
-Original Message-
From: Jason Romero [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 5:13 PM
To: [EMAIL PROTECTED]
Subject: [PHP] ftp_put
I am having problems
I am having problems getting the ftp_put command to upload a file to an
apache server
i get this error
Warning: error opening C:\\WINDOWS\\Desktop\\Jason\\jjmckay\\testaudio.mp3
in /home/virtual/site31/fst/var/www/html/clientadmin/mp3upload.php on line
32
here is the code
$dest = "/var/www/html/
Ensure that the user that PHP is running as has permissions to read the
file.
--zak
- Original Message -
From: "Jon A" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 21, 2001 10:36 AM
Subject: [PHP] ftp_put
> Hi, all.
>
> I try to do
Hi, all.
I try to do a file upload using the ftp_put function, where the source file
is a string from a browse field
When I try to do the upload php says that there is an error opening the
local file.
Does any of you know how to solve this problem?
thanks in advance, Jon A
--
PHP General M
52 matches
Mail list logo