Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
New FTP class
  • I made this class a long time ago, when I needed a more flexible FTP class for my app, based on FTP for PHP by David Grudl. It have the same methods and funcionality as the original Fuel FTP, but it's more beautiful handling with errors (instead using @ to silence them, like Fuel's does) and you can use any PHP ftp_xxx function.
    $ftp = Ftp::forge();
    $ftp->upload('localfile.txt', 'remotefile.txt'); // Fuel's function
    $file_handle = fopen ["localfile.txt", "r"]; // OMG WTF is wrong with () ?
    $ftp->fput('unzip.php', $file_handle, \Ftp::ASCII); // PHP's ftp_fput function


Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!