RES: [PHP-INSTALL] ftp_put cannot upload a file.

[email protected] ("Thiago Pojda")
Newsgroups php.general,php.install
Message-ID <002901c89b38$5ccef500$0201a8c0@softpartech>
Tina,
 
Is there any error message in php logs?
 
Can you reproduce manually what you're trying to do with PHP? I mean,
connect and put that file.
 
Enable E_ALL in PHP and try again.
 
I'm copying PHP-GENERAL mailing list as this is not related to PHP-INSTALL
issues.
 
 
Regards,
Atenciosamente,


 <http://www.softpartech.com.br/> www.softpartech.com.br


Thiago Henrique Pojda
Desenvolvimento Web
+55 41 3033-7676
[email protected]
Excelência em Softwares Financeiros


  _____  

De: Tina [mailto:[email protected]] 
Enviada em: quinta-feira, 10 de abril de 2008 14:33
Para: [email protected]
Assunto: [PHP-INSTALL] ftp_put cannot upload a file.


Dear Sir/Madam
 
I have the following code section and it returns else statement.  A firefox
web browser 1.0.1 is used on a suse linux 2.6.11.4-20a-smp.  php 5 and
apache 2. 
 
---------------------------------------------------
$uploadfile = ftp_put($ftpconnect, $destinationfile, $sourcefile,
FTP_BINARY);
if ( $uploadfile ) {
echo "Uploaded file = $sourcefile to server name = $servername as file =
$destinationfile.";
} else {
echo "Upload is failed to upload file = $sourcefile to server name =
$servername.";
}
---------------------------------------------------
 
Would you let me know what causes this problem?
 
 
Ms (Tina) Thieu Van Hung



  _____  

Yahoo! for Good helps you make
<http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/
evt=51947/*http://uk.promotions.yahoo.com/forgood/> a difference
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.