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');
That's it!
Thanks,
Shane G.
AccuWebHosting.Com
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();
}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