Re: ftp upload via web form - problem getting the file name correct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Franklin van de Meent wrote:

> Hello Steve,
> 
> I tried this on my own servers and after replacing "<OUR FTP SERVER>"
> with $ftp_server it works perfectly, all ASCII files get uploaded the
> way they should with the correct filenames.
> 
> Do you get any errors? (add error_reporting(E_ALL); above the login
> vars to show them all)
Hi
I got a direct email reply yesterday which didn't show up on this list.
Basically I needed to replace

if (ftp_put($c, $ftp_server, $tmp_file, FTP_ASCII)){

with

if (ftp_put($c, $_FILES['ftp_f']['name'], $tmp_file, FTP_ASCII)){

and it worked.

The <OUR FTP SERVER> was just a suggested meaning for the url which is
actually in there.

Thanks for the help

Steve

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux