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.";
}
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 a difference
- Follow-Ups:
- RES: ftp_put cannot upload a file.
- From: Thiago Pojda
- RES: ftp_put cannot upload a file.
- Prev by Date: Re: finding difficulty in installing php5
- Next by Date: RES: ftp_put cannot upload a file.
- Previous by thread: finding difficulty in installing php5
- Next by thread: RES: ftp_put cannot upload a file.
- Index(es):