PHP-从ftp-500下载60mb文件:内部服务器错误
我编写了以下php代码,这些代码应该连接到FTP,转到文件夹并定期下载一个60MB的文件。当我试图运行代码时,它会抛出一个500错误,这是服务器文件的问题吗PHP-从ftp-500下载60mb文件:内部服务器错误,php,Php,我编写了以下php代码,这些代码应该连接到FTP,转到文件夹并定期下载一个60MB的文件。当我试图运行代码时,它会抛出一个500错误,这是服务器文件的问题吗 <? // define some variables $local_file = 'abc.zip'; $server_file = '/ftproot/abc/abc.zip'; $ftp_server="ftp.abc.biz"; $ftp_user_name="abc"; $ftp_user_pass="mypasssword
<?
// define some variables
$local_file = 'abc.zip';
$server_file = '/ftproot/abc/abc.zip';
$ftp_server="ftp.abc.biz";
$ftp_user_name="abc";
$ftp_user_pass="mypasssword";
$conn_id = ftp_connect($ftp_server);
// login with username and password
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
// try to download $server_file and save to $local_file
if (ftp_get($conn_id, $local_file, $server_file, FTP_BINARY)) {
echo "Successfully written to $local_file\n";
}
else {
echo "There was a problem\n";
}
// close the connection
ftp_close($conn_id);
?>
FTP视图
记录了什么错误?@AlessandroNiciforo我没有看到任何错误日志ftp@AlessandroNiciforo我的fto文件夹结构截图不,你的错误记录在服务器上,上面有PHP。那里记录了什么错误?我在服务器上没有看到任何错误日志
Options -Indexes