PHP 8.5.0 Alpha 4 available for testing

Voting

: five minus one?
(Example: nine)

The Note You're Voting On

emailfire at gmail dot com
17 years ago
Took me forever to work out but this will work if you get the paths right!

<?php
function ftp_copy($file) {
global
$conn_id;
$ftp_root = '/public_html/';
$site_root = '/home/usr/public_html/';
return
ftp_put($conn_id, $ftp_root . $file, $site_root . $file, FTP_BINARY);
}
?>

Login to your site using an FTP client to retrieve the $ftp_root

Use something like getcwd() to get the $site root

<< Back to user notes page

To Top