-
How To Upload File Via FTP Using PHP Code?
Hello All,
In order to upload file/s or folder/s on web server using PHP Code one can use below mentioned sample script:
<?php
require_once "PHPFTP.php";
$ftp = new PHPFTP();
$result = $ftp->Connect('www.yourdomain.com','login name','password');
if ($result == 0)
?>
{$ftp->DoCommand('enter command here', $result_number, $result_text);
}
echo "$result_text ($result_number)";
$ftp->DoCommand('another command', $result_number, $result_text);
echo "$result_text ($result_number)";
$ftp->Disconnect();
That’s it!
Thanks,
Shane G.
AccuWebHosting.Com
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)


LinkBack URL
About LinkBacks





Reply With Quote
